React Redux Tutorials - 3 - Three Core Concepts

jh22j9·2020년 10월 12일
0

React Redux Tutorials

목록 보기
3/20

Three Core Concepts


상점에 비유하여 리덕스의 주요 컨셉을 알아본다.

Entities

  • Shop - Store cakes on a shelf
  • Shopkeeper - At the front of the store
  • Customer - At the store entrance

Activities

  • Customer - Buy a cake
  • Shopkeeper - Remove a cake from the shelf and print out a receipt to keep track
Cake Shop ScenarioReduxPurpose
ShopStoreHold the state of your application
intention to BUY_CAKEActionDescribe what happened
ShopkeeperReducerTies the store and actions together

Store

holds the state of your application.

Action

describes the changes in the state of the application.

Reducer

carries out the state transition depending on the action.

0개의 댓글

관련 채용 정보