Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Redux

Prerequisite

Learn about the basics of Redux, here's a good basic example, you should understand what is a reducer, action and store.

Also important is the combineReducers function.

Learn about mapStateToProps & mapDispatchToProps here

Instructions

  1. Define an action for each actionType in actions.ts.
  2. Define your reducers in reducers.ts.
  3. Combine Reducers in reducers.ts.
  4. Map state to props in Redux-app.tsx.
  5. Map dispatch to props in Redux-app.tsx.
  6. Reset the follower batch index after getting new user in stalk-form.tsx.
  7. Set the user in stalk-form.tsx.
  8. You can now uncomment the marked lines in follower-list.tsx.
  9. Implement the call to init followers in follower-list.tsx.
  10. Implement the call to add more followers in follower-list.tsx.
  11. Implement the correct values for the needed consts in follower-list.tsx.
  12. Implement the sorting functions in stalk-form.tsx.
  13. Verify that the app works as expected :) Good job!