1
- type element = React .element
2
-
3
1
type style = ReactDOM .style
4
2
5
3
type domRef = ReactDOM .domRef
@@ -15,7 +13,7 @@ module Props = {
15
13
@optional
16
14
key : string ,
17
15
@optional
18
- children : element ,
16
+ children : Jsx . element ,
19
17
@optional
20
18
ref : domRef ,
21
19
/* accessibility */
@@ -1043,7 +1041,7 @@ module Props = {
1043
1041
@optional
1044
1042
key : string ,
1045
1043
@optional
1046
- children : element ,
1044
+ children : Jsx . element ,
1047
1045
@optional
1048
1046
ref : Js .nullable <Dom .element > => unit ,
1049
1047
/* accessibility */
@@ -2062,15 +2060,17 @@ module Props = {
2062
2060
include Props
2063
2061
2064
2062
@module ("react/jsx-runtime" )
2065
- external jsxKeyed : (string , domProps , string ) => element = "jsx"
2063
+ external jsxKeyed : (string , domProps , string ) => Jsx . element = "jsx"
2066
2064
2067
2065
@module ("react/jsx-runtime" )
2068
- external jsx : (string , domProps ) => element = "jsx"
2066
+ external jsx : (string , domProps ) => Jsx . element = "jsx"
2069
2067
2070
2068
@module ("react/jsx-runtime" )
2071
- external jsxs : (string , domProps ) => element = "jsxs"
2069
+ external jsxs : (string , domProps ) => Jsx . element = "jsxs"
2072
2070
2073
2071
@module ("react/jsx-runtime" )
2074
- external jsxsKeyed : (string , domProps , string ) => element = "jsxs"
2072
+ external jsxsKeyed : (string , domProps , string ) => Jsx . element = "jsxs"
2075
2073
2076
2074
module Style = JsxDOMStyle
2075
+
2076
+ external stringToComponent : string => Jsx .component <domProps > = "%identity"
0 commit comments