N
N
Nikita2020-11-05 15:10:15
React
Nikita, 2020-11-05 15:10:15

Is it possible to replace redux with useContext + useReducer?

Is there still a need for redux (or its alternatives) in new applications? Can it be replaced with useContext and useReducer? Using these hooks, what tasks will remain unresolved when working with the state manager? Is it possible, using useContext and useReducer, to work comfortably with asynchronous code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2020-11-05
@karminski

redux can be safely replaced with useState + useContext

X
xenonhammer, 2020-11-06
@xenonhammer

It will be necessary to build the correct architecture. Not just use the concept of redax. However, of course you can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question