IT/코딩복습(일기)

21.01.03 props vs. state, CRUD

만두토끼 2021. 1. 4. 22:13

props vs. state

props

  • 부모 component가 자식 component 한테 전달하는 데이터, (자식입장에서) 읽기 전용.
  • 전달 가능(매개변수처럼)
  • component 밖에서 props 변경 가능

 

state

  • 자신이 들고 있는 값 
  • component 내부에서 사용(함수 내에 선언된 변수처럼)


CRUD

create
read
update
delete

'IT > 코딩복습(일기)' 카테고리의 다른 글

21.01.05 shouldComponentUpdate, teachable machine(google)  (0) 2021.01.06
21.01.04 push vs. concat  (0) 2021.01.05
21.01.02 React_ component event  (0) 2021.01.03
21.01.01 React 복습  (0) 2021.01.02
20.12.31 git hub, GIT의 목적은?  (0) 2021.01.01