-
Notifications
You must be signed in to change notification settings - Fork 90
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
vanjs-jsx Fragment missing #324
Comments
@cqh963852, could you take a look at this? |
@cqh963852 sorry to bother you, I believe you need to export something like this // vanjs-jsx/src/index.js
import van from "vanjs-core";
export function createState(v) {
return van.state(v);
}
export const Fragment = (props) => props.children; // <<<<<<<<<<<<< THIS
export { default as createElement, default as jsx, default as jsxDEV } from "./createElement"; Another option would be something like Solid has implemented with |
solidjs has its own babel transform. I tend to fork the react's compiler to do this work. |
I can understand your expectation. Do you mean it to be more like writing html?
|
Hi @Tao-VanJS, I'm getting this error:
Perhaps including something in compileOptions or the jsx-runtime would fix this? Let me try and let you know later ;)
Btw, I'm using the default bare example converted to JSX
The text was updated successfully, but these errors were encountered: