Answer the question
In order to leave comments, you need to log in
How js framework accepts data via api from php framework?
So it goes.
Suppose there is a backend on Laravel at api.project.com
And there is a frontend - project.com - for example, on ReactJS
What is the data transfer mechanism? I don't understand this at all. Magic?
Answer the question
In order to leave comments, you need to log in
With the help of https://developer.mozilla.org/en-US/docs/Web/API/X...
Only the thrill-seekers use it raw. The rest use wrappers.
Axios and superagent are popular in ReactJS
A normal ajax request with the right method and all the necessary headers.
For example api.jquery.com/jquery.ajax
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question