Answer the question
In order to leave comments, you need to log in
Redux + Context on the project, right or what is better?
Good afternoon, I use Redux on the project, however, to check the registration data, as well as to store the token, I use Context. Are there any problems if you use both options on the project, or is it still worth abandoning Context and doing everything on Redux?
Answer the question
In order to leave comments, you need to log in
Context is not needed for these purposes, it is better not to pass critical data in it. In the context, you can pass non-critical data that is used in many parts of the application - for example, the current theme, locale, etc.
So they are not interchangeable, use Redux to store application state
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question