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?