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

Commit db67a2c

Browse files
committed
update V4 spec doc
1 parent 1165667 commit db67a2c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cli/JSXV4.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ let make = React.forwardRef((~x, ~y, ref) => body)
2323
2424
let make = React.forwardRef({
2525
let fn =
26-
@react.component (~x, ~y, ~ref=?) => {
27-
let ref = ref->Js.Nullable.fromOption
28-
body
29-
}
30-
(props, ref) => fn({...props, ref: {ref->Js.Nullable.toOption}})
26+
@react.component (~x, ~y) => ref => body
27+
(props, ref) => fn(props, ref)
3128
})
3229
```
3330

0 commit comments

Comments
 (0)