J
J
javanub2018-11-07 20:53:04
Laravel
javanub, 2018-11-07 20:53:04

How do you pass the response to the view if the components are in React?

How do you pass a response to a view if the components are in React? I have many pages, mostly CRUD. But as I understand it, controllers should only return response. Therefore, how to reponse to send to the view, if at the same time the components are on React. Explain how you implement all this if the project is not a SPA, but a multi-page project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mShpakov, 2018-11-07
@mShpakov

Separate the backend from the frontend
And access the backend (api) from the front

A
abberati, 2018-11-07
@abberati

Between the react and the responses from the server, there should be a state management system (state management system), redux / mobx or something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question