It is easy to predict and maintain. State is read -only. The state is read-only, which means we can only access the data, we can’t do overwrites or any actions to mutate it or directly change the information. It follows immutable update patterns(read once immutable and mutable patterns in angular).
Read moreWhat do you use for state management?
useReducer is a hook I use sometimes to manage the state of the application. It is very similar to the useState hook, just more complex. useReducer hook uses the same concept as the reducers in Redux. It is basically a pure function, with no side-effects.
Read more