Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by spankalee on Thursday June 15, 2023 @02:28PM
(#36344638)
How is Lit's use of JS in templates any different than JSX? Both use JS for expressions and control-flow.
[ Parent
| on HN ]
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by ReD_CoDE on Thursday June 15, 2023 @02:55PM
(#36344990)
JSX is expensive than JS, because JSX first needs to become JS, then other things happen
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by spankalee on Thursday June 15, 2023 @07:00PM
(#36347982)
That 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.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by earthboundkid on Thursday June 15, 2023 @10:54PM
(#36350500)
There 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.