5 ms·
The whole html template is one long string literal. I prefer JSX, where the XML is treated as code rather than a long string that needs to be parsed.
by enlyth 7y ago
The whole html template is one long string literal. I prefer JSX, where the XML is treated as code rather than a long string that needs to be parsed.
- draw_down 7y agoCode gets parsed too!
- inopinatus 7y agoVue already supports templates written in JSX/functional style. I very much doubt this goes away. Template syntax is not the topic of this RFC, and where it does touch rendering, it retains the option of render functions.
- akhilcacharya 7y agoI prefer this because it doesn’t require a build step.
- root_axis 7y agoTrue, but realistically you need some kind of build pipeline for production quality JS anyway so adding it in is pretty painless.