r/Frontend •

React-Like JSX Syntax for Webcomponents

[deleted] — view deleted post

0 Upvotes

8 comments sorted by

1

u/kidshibuya 14d ago

Meh, I used to just write web components straight up, now AI writes them fine too... Not sure why any npm install is needed?

1

u/TheRNGuy 12d ago

What about TSX? 

1

u/Plastic_Koala2044 7d ago

Nice. Does the JSX need a compile step? I've stuck with tagged template literals for Web Components because they get close to this with no build.

2

u/Accurate-Screen8774 7d ago

No compile step needed.

Im working on a boilerplate demo that might be more helpful as an example.

https://github.com/positive-intentions/dim-boilerplate

1

u/Plastic_Koala2044 6d ago

Good to know, I'll check the boilerplate.

0

u/opiniondevnull 15d ago

If you like lit you might wanna look at datastar+rocket

-16

u/riccioverde11 15d ago

Please no JSX, literally everyone hates it, who likes it has been react-brain-washed

1

u/Merry-Lane 15d ago

Yes, it’s always better to use a different syntax for the even the most basic JavaScript operations like if/else or list iterations.

/s