mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
step 6 exercise
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
# Step 2.6
|
||||
|
||||
Dispatching Actions and Examining State
|
||||
Redux: Dispatching Actions and Examining State.
|
||||
|
||||
In this step, we learn about `dispatch` and `getState()`. Dispatching action messages to the store is the only means by which to inform the reducers to modify the shared state tree.
|
||||
|
||||
We also saw how we may compose the reducers according to the shape
|
||||
|
||||
# Exercise
|
||||
|
||||
1. open the `exercise/src/reducers/reducer.spec.ts`
|
||||
|
||||
2. Follow the instructions to fill out the reducer tests
|
||||
|
||||
3. Run the tests with `npm test`
|
||||
|
||||
Reference in New Issue
Block a user