Im using Context API for multi store management and React-Redux with thunk for a single store management.
Should I stick to one over the other or should I use React-Redux for multiple store management over React's Context API.
I spoke with a friend who did vice-versa versus me for his company and im wondering why but never got an explanation.
Whats the best practice?
React Context API is somewhat harder to manage you can use redux instead to manage states.
react-redux is just used as a connector between react and redux.
You can do the following for best practices:
redux.react with redux you can go for react-redux.redux-thunk or redux-saga.I prefer redux-saga as it has more advantages over redux-thunk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With