[React] 4장. props와 state

React.js 기초 다지기

목차

  1. 리액트란?

  2. JSX란?

  3. 컴포넌트란?

  4. props와 state

  5. state와 stateless

  6. style 적용하기

  7. life cycle


4. props와 state

props란?

A React component should use props to store information that can be changed, but can only be changed by a different component.

A React component should use state to store information that the component itself can change.


state란?