V
V
Vovash2020-08-03 20:53:50
React
Vovash, 2020-08-03 20:53:50

How to logically separate application states?

I decided to write a blog on the MERN stack, reached the login stage under the admin,
wrote on hooks, decided to pass everything related to the login (jwt token, user id, isLogged, and the login and logout functions) through the context and the provider, after which I wondered, how to logically separate the logic:
leave everything related to authorization in this form, and use redux for user interaction?
or can all the logic be stuffed into redux?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t800zippygod, 2020-08-03
@t800zippygod

For all redux why not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question