Skip to content

Commit 6de73df

Browse files
committed
Add sample to reproduce
1 parent 3079bdb commit 6de73df

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@@config({
2+
flags: ["-bs-jsx", "4", "-bs-jsx-preserve", "-bs-jsx-module", "Custom"],
3+
})
4+
5+
module Custom = {
6+
type component<'props> = Jsx.component<'props>
7+
type element = Jsx.element
8+
9+
external jsx: (component<'props>, 'props) => element = "jsx"
10+
11+
type fragmentProps = {children?: element}
12+
13+
external jsxFragment: component<fragmentProps> = "Fragment"
14+
}
15+
16+
let _fragment = <> {Jsx.string("Hello, world!")} </>

0 commit comments

Comments
 (0)