search

Home  >  Q&A  >  body text

javascript - react itself, setState and reducer in redux are used in the project at the same time

Currently working on a react project,
1 Some states need to be managed in redux and updated through the reducer;
2 Some states may need to be stored directly in the state of the component and changed through setState Component status
How does this way of writing code work in react? Are there any related projects for reference?

ringa_leeringa_lee2725 days ago616

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-12 09:28:45

    The react-starter-kit our company is using

    reply
    0
  • Cancelreply