Use-Case: A react app that also has a little (important) feature that opens a new page (on a new window) upon clickEventHandlers, and displaying results using PHP code in order to parse through a result that is an HTML report from a SQL query. I have used PHP to parse through the resulting output that's in HTML with the help of strpos, and several loops, and this was easy for me. I simple echo the page on the front. For the most part of this app, it's a SPA, but there's a need to open a new page for this report and to customize its "table views".
I only know how to do this via PHP and I wish we could do this via React but I have no idea how to fetch the resulting output (that's in HTML) in json, and then parse through it and map it out to the front end as React does not read HTML code.
I see create-react-app is good for SPAs, but I don't see anyone using any PHP whatsoever for the backend. Is create-react-app even a good approach? I know it utilizes .html pages and not .php so I don't know any way to utilize the PHP I got to parse the html output for this feature.
Is there another approach to solve this problem?