facebook / jsx

The JSX specification is a XML-like syntax extension to ECMAScript.
http://facebook.github.io/jsx/
1.95k stars 133 forks source link

Using alpinejs attribute in jsx #162

Open believelody opened 3 months ago

believelody commented 3 months ago

Hi guys, it's really not an issue but since JSX is more often used without React, we can achieve some really good things. I'm trying to make alpinejs and jsx work but faced problems when using some attributes markup. For instance; <div @click="console.log('test') :class="..." x-transition.leave.duration.500ms>...

will break because of "@", ":" characters and dot dot attributes. Is it possible to allow these attributes or jsx cannot interpret them ? It's interesting to notice that in Astro, it works (is it Astro which take care of it ?).

Sincerely