Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit fbd51e3

Browse files
committed
spec: tweak fragment.
1 parent 9ec5f16 commit fbd51e3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

cli/JSXV4.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,9 @@ function has the name of the enclosing module/file.
9292
**Fragment**
9393

9494
```rescript
95-
@react.component
96-
let make = () => <> component </>
95+
<> comp1 comp2 comp3 </>
9796
9897
// is converted to
9998
100-
let make = () => {
101-
ReactDOMRe.createElement(
102-
ReasonReact.fragment,
103-
[
104-
component
105-
]
106-
)
107-
}
99+
ReactDOMRe.createElement(ReasonReact.fragment, [comp1, comp2, comp3])
108100
```

0 commit comments

Comments
 (0)