DEV Community

Discussion on: Using JSX without react

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I am a jsx fan as well, but have you seen lit-html I feel like that's a better way to go without React. Also with an IDE or plugin for your editor you can get syntax highlighting pretty easily.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

For lit-html, syntax highlighting in VSCode doesn't seem to be as smart as JSX, though.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I'm x vscode and now I use webstorm which is a dream.

Thread Thread
 
umutakyol profile image
asdsadasf

Why?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

You know what they say, be prepared. This is why.
dev.to/adam_cyclones/moving-from-v...

Collapse
 
kartiknair profile image
Kartik Nair

You have to download the lit-html extension. It's not as good as jsx Emmet though

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

Is there a template literals html highlighter, might do the job for most things even when not using lit?

Collapse
 
kartiknair profile image
Kartik Nair

Yep I've tried it out before one thing that annoys me is having to constantly wrap all jsx in the html function. A good alternative is the the Babel plugin which transforms jsx into htm. Perhaps I'll try and use that more often