Transitioning from Context API to Redux for improved state management.
As a senior engineer,
I want to use Redux for global state management,
so that it is decoupled from React.
- Redux Store: Confirm use over Context API.
- Provider: App wraps with
<Provider store={store}>
. - Reducers: State managed through reducers.
- State Access: Use
useSelector
for data extraction. - Action Dispatch: Use
useDispatch
for actions.
- Scalability
- Separation of concerns
- Enhanced debugging
- Clone the repo.
- Run
npm install
. - Start with
npm start
.