Skip to content

Commit 16b3f37

Browse files
committedOct 26, 2022
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

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/React.res

+1-1
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)