Skip to content

Commit f65314c

Browse files
authored
Merge pull request rescript-lang#299 from a-c-sreedhar-reddy/patch-1
Pass labelled arguments in the example
2 parents ddd3f27 + 3d833fc commit f65314c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pages/docs/react/latest/elements-and-jsx.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ This feature is often used when interacting with existing JS / ReactJS code. In
135135

136136
```res
137137
let render = (renderMyComp: (~name: string) => React.element) => {
138-
<div>
139-
{renderMyComp("Franz")}
140-
</div>
138+
<div> {renderMyComp(~name="Franz")} </div>
141139
}
142140
```
143141

0 commit comments

Comments
 (0)