4 ms·
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 syst
by ggregoire 8y ago
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.
- Aeolun 8y agoYou 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.