Skip to content

Commit

Permalink
update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Mar 22, 2016
1 parent 8343190 commit ff5305c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subjects/Redux/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ is to:
1. add a reducer, in this exercise the reducer is already there (reducers/contacts)
so this part is already done.
2. Add propTypes to your component for the state and then "select" it in `connect`
2. add a new action, it doesn't have to do much yet, just exist
3. add the UI and dispatch the action
4. finish up the action's logic if needed
5. handle the action in the reducer by returning new state, remember don't mutate
2. Add propTypes to your component for the state and then "mapStateToProps" it in `connect`
3. add a new action, it doesn't have to do much yet, just exist
4. add the UI and dispatch the action
5. finish up the action's logic
6. handle the action in the reducer by returning new state, remember don't mutate
the reducer state, return new objects/arrays.
Doing it in this order ensures your app will continue to run when you save code.
Expand Down

0 comments on commit ff5305c

Please sign in to comment.