2 ms·
The example used to demonstrate template literal "syntax noise" in this proposal is an unfair exaggeration, in my opinion. JSX is handy because it allows autho
by cdata 12y ago
The example used to demonstrate template literal "syntax noise" in this proposal is an unfair exaggeration, in my opinion.
JSX is handy because it allows authors to think about the hierarchical relationship of components in terms of how they would be laid out in something like HTML. Template literals may not be ideally suited to the JSX case, but they represent a promising "native" solution to the problem JSX tries to solve. I'm always happier when I can leverage something that is native to the language I'm using to solve a problem.