Answer the question
In order to leave comments, you need to log in
How does NEXTJS + redux + axios work?
I can’t understand how NEXTJS + redux + axios works.
As I see it:
1) The user requests the example-store.ru/product/5 page
2) Nextjs makes requests to the API server via axios
3) The data from the response flies to the state
4) Based on the data from the state, an HTML page is formed and returned to client
Tell me if I understand correctly or not? If yes, then how to implement it (maybe there are examples), if not, then tell me how to do it right?
Answer the question
In order to leave comments, you need to log in
4. The page will be generated anyway. And if you do not do any checks, then before receiving the content via api.
You understand the process - what exactly to explain to you?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question