File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 3
3
## 0.11.0-alpha.2
4
4
5
5
- Relax React version requirement to v18.0.0+.
6
- - Deprecated type ` ReactDOM.props `
6
+ - Deprecated types ` ReactDOM.props ` , ` ReactDOM.Props.props ` , ` ReactDOM.Props.domProps ` .
7
7
8
8
** Breaking:**
9
9
Original file line number Diff line number Diff line change @@ -56,12 +56,18 @@ module Ref = {
56
56
external callbackDomRef : callbackDomRef => domRef = "%identity"
57
57
}
58
58
59
+ type domProps = JsxDOM .domProps
60
+
61
+ @deprecated ("Please use type ReactDOM.domProps" )
62
+ type props = JsxDOM .domProps
63
+
59
64
module Props = {
65
+ @deprecated ("Please use type ReactDOM.domProps" )
60
66
type domProps = JsxDOM .domProps
61
67
62
68
/** DEPRECATED */
63
69
@deriving (abstract )
64
- @deprecated ("Please use type domProps" )
70
+ @deprecated ("Please use type ReactDOM. domProps" )
65
71
type props = {
66
72
@optional
67
73
key : string ,
@@ -1084,10 +1090,8 @@ module Props = {
1084
1090
}
1085
1091
}
1086
1092
1087
- include Props
1088
-
1089
1093
@variadic @module ("react" )
1090
- external createElement : (string , ~props : props = ?, array <React .element >) => React .element =
1094
+ external createElement : (string , ~props : domProps = ?, array <React .element >) => React .element =
1091
1095
"createElement"
1092
1096
1093
1097
@variadic @module ("react" )
Original file line number Diff line number Diff line change 2
2
This module is kept for ReScript react-jsx v3 compatibility
3
3
We removed all functionality that is not needed for JSX usage
4
4
**/
5
-
6
- include ReactDOM .Props
7
-
8
- @variadic @module ("react" )
5
+ @variadic
6
+ @module ("react" )
9
7
external createDOMElementVariadic : (
10
8
string ,
11
- ~props : domProps = ?,
9
+ ~props : ReactDOM_V3 . domProps = ?,
12
10
array <React .element >,
13
11
) => React .element = "createElement"
14
12
15
13
@variadic @module ("react" )
16
- external createElement : (string , ~props : props = ?, array <React .element >) => React .element =
17
- "createElement"
14
+ external createElement : (
15
+ string ,
16
+ ~props : ReactDOM_V3 .domProps = ?,
17
+ array <React .element >,
18
+ ) => React .element = "createElement"
You can’t perform that action at this time.
0 commit comments