속성 (1) 썸네일형 리스트형 Props, State (리액트 컴포넌트 속성, 상태) Props, State (리액트 컴포넌트 속성, 상태) Properties(속성)의 Props이다. 리액트에서 변동하지 않는 데이터를 다룰 때 사용한다.123456789101112131415161718192021222324252627282930import React, { Component } from 'react';import PropTypes from 'prop-types';import logo from './logo.svg';import './App.css'; class App extends Component { render() { return ( Welcome to React 이름은 {this.props.name} 이고, 나이는 {this.props.age} 입니다. ); }} App.PropTyp.. 이전 1 다음