Skip to content

Commit b7c0536

Browse files
committed
fix binding of react components for V4
1 parent cb28860 commit b7c0536

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/React.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,21 @@ module Fragment = {
105105
type props<'children> = {key?: string, children: 'children}
106106

107107
@module("react")
108-
external make: component<props<'children>> => element = "Fragment"
108+
external make: component<props<'children>> = "Fragment"
109109
}
110110

111111
module StrictMode = {
112112
type props<'children> = {key?: string, children: 'children}
113113

114114
@module("react")
115-
external make: component<props<'children>> => element = "StrictMode"
115+
external make: component<props<'children>> = "StrictMode"
116116
}
117117

118118
module Suspense = {
119119
type props<'children, 'fallback> = {key?: string, children?: 'children, fallback?: 'fallback}
120120

121121
@module("react")
122-
external make: component<props<'children, 'fallback>> => element = "Suspense"
122+
external make: component<props<'children, 'fallback>> = "Suspense"
123123
}
124124

125125
module Experimental = {
@@ -134,7 +134,7 @@ module Experimental = {
134134
}
135135

136136
@module("react")
137-
external make: component<props<'children, 'revealOrder, 'tail>> => element = "SuspenseList"
137+
external make: component<props<'children, 'revealOrder, 'tail>> = "SuspenseList"
138138
}
139139
}
140140

0 commit comments

Comments
 (0)