Recently I landed a gig at a company to help their team out with their React work (using Redux). This list of tips – save for number 10 – resonates quite well with what I’ve been introducing there:
- Plan 1 day of training per developer dedicated to Redux
- Integrate Redux-dev-tools as early as possible
- Use action creators
- Organize your file system with Redux Ducks
- Write unit tests, it’s *free*
- Make general APIs using payload-based action creators
- Anticipate that you will have a lot of async-handling code
- Normalize your state like a database
- Use selectors
- Flowtype, Reasonml or Typescript can really help