3 ms·
How is Lit's use of JS in templates any different than JSX? Both use JS for expressions and control-flow.
by spankalee 3y ago
How is Lit's use of JS in templates any different than JSX? Both use JS for expressions and control-flow.
- ReD_CoDE 3y agoJSX is expensive than JS, because JSX first needs to become JS, then other things happen
- spankalee 3y agoThat doesn't speak to this comment: > Not sure why everyone wants to write a programming language inside HTML like lit does When that's exactly what the OP's suggestion of React does.
- earthboundkid 3y agoThere are a bunch of server side apps that turn JSX into static HTML with no JS. It’s just a template language that compiles into JS but you can do anything with it you could do with other template languages.