News for hackers. Stuff that matters.
Re:Moving from Go to PHP Again by ggregoire on Friday February 08, 2019 @03:24AM (#19112415)
Not really comparable tho. In React, the JS in the HTML is to make loops and conditional rendering, i.e. presentational logic, like in any other templating system. In PHP, you can embed business logic and database accesses in the HTML.
Re:Moving from Go to PHP Again by Aeolun on Friday February 08, 2019 @06:35AM (#19113288)
You can do the same in your React render method I suppose, though it’s a bit harder since you are not attached to the server.