by jph · 8y ago · 0 comments
{#each cats as cat}
reminds me of ng-repeat, and of course there are other similarities.I'm not necessarily saying that that's bad, but as a matter of personal preference I tend to prefer the html-into-JS approach of JSX / React over what is essentially implementing a subset of javascript as part of the template syntax.
I don't like that you have to ask what parts of javascript you are allowed to use within a template.
NYT uses Svelt and Rollup for great stuff like this -- "Keep On Scrollin'!":
https://www.nytimes.com/interactive/2018/01/27/technology/so...
Thanks for sharing!