Re:Rich Harris joins Vercel to work on Svelte full time
by jeswin on Thursday November 11, 2021 @09:51PM
(#29195843)
Yeah, but that's harder in practice. You often copy html snippets into your code, for example from tailwind or bootstrap samples. This is easier in JSX syntax; you'd just need to copy and fix up some attribute names.
[ Parent
| on HN ]
Re:Rich Harris joins Vercel to work on Svelte full time
by keb_ on Thursday November 11, 2021 @11:55PM
(#29196419)
> You often copy html snippets into your code, for example from tailwind or bootstrap samples. This is easier in JSX syntax; you'd just need to copy and fix up some attribute names.
I literally never do this, but I suppose there are people who use React/JSX as a glorified templating library. Even then I probably wouldn't do this and rather use a proper templating library where HTML is valid.