상점에 비유하여 리덕스의 주요 컨셉을 알아본다.
Entities
Activities
Cake Shop Scenario | Redux | Purpose |
---|---|---|
Shop | Store | Hold the state of your application |
intention to BUY_CAKE | Action | Describe what happened |
Shopkeeper | Reducer | Ties the store and actions together |
holds the state of your application.
describes the changes in the state of the application.
carries out the state transition depending on the action.