Skip to content
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

Is pragmaFrag supported? #44

Closed
jcubic opened this issue Dec 30, 2023 · 1 comment
Closed

Is pragmaFrag supported? #44

jcubic opened this issue Dec 30, 2023 · 1 comment

Comments

@jcubic
Copy link

jcubic commented Dec 30, 2023

I'm trying to use a fragment

<>
</>

but got error from babel:

transform-react-jsx: pragma has been set but pragmaFrag has not been set

I'm using Codepen. Here is my code https://codepen.io/jcubic/pen/jOJbOwG

@jcubic
Copy link
Author

jcubic commented Dec 30, 2023

Found how to setup this on CodePen:

/** @jsx vhtml */
/** @jsxFrag vhtml.Fragment */

@jcubic jcubic closed this as completed Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant