13. ⓒ NAVER Connect Foundation 13
2.1 Recoil 시작하기
Recoil
2020 ReactEurope conference (20.05.14)
페이스북이 공식적으로 발표한 상태 관리
라이브러리
01
02
03
Flexible shared State
Derived data and queries
App-wide state observation
14. ⓒ NAVER Connect Foundation 14
2.1 Recoil 시작하기
Recoil 배경 - 1
1
2
props drilling
1
2
15. ⓒ NAVER Connect Foundation 15
2.1 Recoil 시작하기
Recoil 배경 - 2
1
2
Context - Provider
Consumer
Consumer
16. ⓒ NAVER Connect Foundation 16
2.1 Recoil 시작하기
Recoil 배경 -
2 Context
“Context를 이용하면 단계마다 일일이 props를 넘겨주지
않고도 컴포넌트 트리 전체에 데이터를 제공할 수 있습니다.”
공
유
관
리
의존성
주입
17. ⓒ NAVER Connect Foundation 17
2.2 Context API
item1
item2
item3
item4
item2