A
A
aivazovski2018-12-26 13:54:12
JavaScript
aivazovski, 2018-12-26 13:54:12

Where in react + redux SPA to write a request to the REST API?

Good afternoon.
I am learning the technologies required for a full stack js developer.
For practice, I am writing a todo list application. I wrote REST API on node.js+mongo and SPA on react+redux. Now I'm going to link them, and hence the questions. How SPA should interact with REST API? Where specifically to write fetch, in reducers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-12-26
@aivazovski

Disappear Middleware. There is a very simple and popular redux-thunk library .
Article on this topic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question