Skip to content

Commit 68d14bb

Browse files
authored
fragmentProps children field optional (#77)
1 parent a3938ea commit 68d14bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 0.11.0-rc.3
44

55
- Changed `React.jsxKeyed(s)`, `ReactDOM.jsxKeyed(s)` having key as optional argument.
6+
- Changed `React.fragmentProps` children field to optional.
67

78
## 0.11.0-rc.2
89

src/React.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ external jsxs: (component<'props>, 'props) => element = "jsxs"
5757
@module("react/jsx-runtime")
5858
external jsxsKeyed: (component<'props>, 'props, ~key: string=?, @ignore unit) => element = "jsxs"
5959

60-
type fragmentProps<'children> = {children: 'children}
60+
type fragmentProps<'children> = {children?: 'children}
6161

6262
@module("react/jsx-runtime") external jsxFragment: component<fragmentProps<'children>> = "Fragment"
6363

0 commit comments

Comments
 (0)