Skip to content

Commit 16b3f37

Browse files
committed
Make React.component conversion function zero cost
1 parent 68d14bb commit 16b3f37

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/React.bs.js

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/React.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type componentLike<'props, 'return> = Jsx.componentLike<'props, 'return>
1212

1313
type component<'props> = Jsx.component<'props>
1414

15-
let component = Jsx.component
15+
external component: componentLike<'props, element> => component<'props> = "%identity"
1616

1717
%%private(
1818
@val

0 commit comments

Comments
 (0)