4 ms·
I basically agree. Templates are basically strings, while jsx is in the end a full programming language (js). It has the downsides you mention (the error repor
by mejutoco 5y ago
I basically agree. Templates are basically strings, while jsx is in the end a full programming language (js).
It has the downsides you mention (the error reporting is okayish I think). On the other side, you can write html directly (no classname, etc), and there is no transpiling/build tools/server-side rendering to add.
String templates are also side-effect free.
For spa I would prefer React (with Typescript): for a request/response old-fashioned app, or something like htmx/hotwire text templates can be very productive. I see your point though.
Edit: extra points.