-
Notifications
You must be signed in to change notification settings - Fork 3
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
Preact support #2
Comments
Thanks for providing me the example. I just realized that JSX implementation on React and Preact are quite different. Let me add JSX implementation support for Preact. |
The way it's handled by Babel that transform JSX is that they use Pragma that allow to use different function in Preact the name is |
Hi, this issue can be solved if you use
You need to do this because |
I was able to update my demo, with Preact. I'm wondering if it will work if you use JSX+Preact because the example use |
You could try using JSX and Preact, but I think you would have to use |
I think that your library don't work with Preact JSX only with react because it relay on internals of React.
I've created basic example with Preact (sorry no JSX but it shouldn't matter the code is the same)
https://codepen.io/jcubic/pen/PobgJPM?editors=0010
but got error
"rectangle" is not registered in 'withInstructs' at composeFromJsx(jsx, withInstructs) function
I use almost the same code as your basic JSX example but I used Preact instead of React.
The text was updated successfully, but these errors were encountered: