|
|
|
|
|
by zer00eyz
886 days ago
|
|
>>> There have been many bad templating languages, but I think JSX is ok. A bad templating language would be worlds better than JSX.... "JSX may remind you of a template language, but it comes with the full power of JavaScript". JSX is javascript. This is the very sin that PHP spent its early years getting thrown under the bus for. IF you build a rich react app, and then figure out later that you need a bunch of static, partial static late hydration pages your going to be running node/bun in production to generate those because its not like you can hand JSX to another, performant, language. And yes im aware of things like packed. The problem is JSX templates, to a large degree, are not compatible. Code in templates was bad when PHP did it, when Perl did it, it's bad now. |
|