Re:Things you forgot because of React
by robertoandred on Tuesday August 15, 2023 @11:43PM
(#37142619)
You couldn't do that before. Combining a PHP backend and a frontend framework meant you had two different html templates.
[ Parent
| on HN ]
What are you event talking about? Are you aware that any touring completel language can output JSON... what two different html templates?
Re:Things you forgot because of React
by tacker2000 on Wednesday August 16, 2023 @05:47AM
(#37144766)
Thats not true. You had one .php file (or more, if you use includes) where everything was located: the HTML, if necessary any JS via <script> and interspersed with <?php … ?> depending on what dynamic stuff you wanted to output.
And this is parsed to one output file that is sent back to the browser.