Answer the question
In order to leave comments, you need to log in
How to combine React and Slim PHP Framework?
I am planning to make a small React application with Slim backend.
What's the best way to get this whole thing together? Would it be better to create an application through create-react-app,
and then add Slim to it, or first install Slim through composer create-project, and then screw React? From the backend, I will only need to interact with the database (at least for now)
Answer the question
In order to leave comments, you need to log in
You create a separate Slim, a separate React project. Write an API in slim, and get data for react through axios .
I think it's worth starting from here
https://www.youtube.com/watch?v=1REcQro7tik&t=4s
https://www.fullstackreact.com/articles/using-crea...
https://www.slideshare.net/andrewrota /integrating-...
But I think you shouldn't care if your react application just knocks on the server api.
If you also need a rendering server, then you will not find better than Node js. There are many articles on the Internet on this topic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question