I've looked all over SO but the answers I'm seeing aren't clear for me. I've designed a nice UI/UX using react.js for my project but now I want to start hooking up some backend stuff to it using php.
I'm aware you can make ajax calls to fetch data but that still wouldn't allow me to do something like: <p><?php echo "testing; ?></p> in a react.js file.
Maybe my understanding isn't clear but I'd love some clarification because what I'm seeing online doesn't suffice for me.
Is it possible to write php scripts in a react.js file?
Also, I saw this link: https://github.com/reactjs/react-php-v8js but again, it isn't clear.
My apologies in advance if this doesn't satisfy the question standards on SO, I'm just really stuck and have nobody to turn to IRL other than SO. Thanks :-)
GETrequests from my php file and put those values in a state in my reactjs file, right?