A
A
Alice2020-08-16 23:29:33
React
Alice, 2020-08-16 23:29:33

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

2 answer(s)
M
McBernar, 2020-08-16
@McBernar

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?

S
semki096, 2020-08-17
@semki096

I'm just learning myself, I don't know if my advice will be useful. On YouTube there is a 40-minute course on next (Minina). Redux is not really there, but it is told how it works with props. I could be wrong but it seems redux is no longer relevant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question