You are about to make the PHP web application React.JS version. But I'm wandering because I can't find the right way.

Asked 2 years ago, Updated 2 years ago, 52 views

How can I install React.JS on PHP and use it? Is there a full example source code or template source code? I downloaded github but it's not PHP version, so I'm having a hard time using it. There was no index.php like PHP. So I'd like to use PHP. Can I get it? If you have a link to the data, please.

And if you can't get something like that, please tell me how to do it. You want to run it on the local host for now.

I would appreciate it if you could tell me how to connect PHP and React.JS.

php reactjs

2022-09-21 18:47

1 Answers

React is only a view. But it's a very special and interesting view that can handle routing. Instead, there is no function to read and write DB (because it is a view...), so the necessary data is written by receiving a specific API fetch().

That's the basic concept, so in reality...

This should be enough unless you're serious about server-side rendering. Try it!


2022-09-21 18:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.