Support JSX #733
xialvjun
started this conversation in
4. General
Support JSX
#733
Replies: 1 comment
-
We need JSX mostly because we need TypeScript. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because alpine.js mix much js logic in it's template, we should use jsx (or tsx is better).
But since alpine lives on the real dom element rather than virtual dom, we can use jsx to create real dom element, which means:
<div></div> === document.createElement('div')
We can:
Beta Was this translation helpful? Give feedback.
All reactions