-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSX + React #1429
JSX + React #1429
Conversation
affee7d
to
db1df92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<OK />!
Hmm, I found a bug where if you move a JSX block to a new location during preview, it doesn’t get relocated (because we do the special treatment for Edit: Fixed, but still working on the documentation and then I’ll push up some commits. |
Extracted from #1216, this implements client-side support for JSX with React. It looks like this:
In JSX blocks, you can only display one thing at a time; subsequent calls to
display
will replace whatever was displayed previously. Also, you can only display React elements.TODO:
React
built-inReactDOM
built-increateRoot
withindisplay
Future work:
${<Component />}
(requires acorn-jsx)?Fixes #971.