4 ms·
It all depends on the requirements and quality attributes. For example, a plain string template will not help with selective DOM updates; that’s why we end wit
by diegof79 2y ago
It all depends on the requirements and quality attributes.
For example, a plain string template will not help with selective DOM updates; that’s why we end with a tree DSL like JSX.
For many different reasons, you’ll like to have lazy component rendering. That’s why using `Component(props)` is not the same as `factory(Component, props)`.
I’m not saying that the author is wrong or right. If you only want a server-side template or one-off template for a simple page, then using JS/TS string templates is better than relying on a DSL like Handlebars or Pug. The client-side story is a bit different, and that’s why there are so many frameworks for it.