Skip to content

Commit 7c85547

Browse files
mununkicristianoc
authored andcommitted
clean up the expressions
1 parent b955461 commit 7c85547

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pages/docs/manual/latest/jsx.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ React.createElement(MyComponent, {
162162
## Departures From JS JSX
163163

164164
- Attributes and children don't mandate `{}`, but we show them anyway for ease of learning. Once you format your file, some of them go away and some turn into parentheses.
165-
- The spread props is supported, but there are some restrictions.
165+
- Props spread is supported, but there are some restrictions (see below).
166166
- Punning!
167167

168-
### Spread props
168+
### Spread Props (from v10.1)
169169

170-
The JSX spread props is supported.
170+
JSX props spread is supported now, but in a stricter way than in JS.
171171

172172
<CodeTab labels={["ReScript", "JS Output"]}>
173173

@@ -183,7 +183,7 @@ React.createElement(Comp, {
183183

184184
</CodeTab>
185185

186-
The multiple spreads are not allowed:
186+
Multiple spreads are not allowed:
187187

188188
<CodeTab labels={["ReScript"]}>
189189

@@ -193,7 +193,7 @@ The multiple spreads are not allowed:
193193

194194
</CodeTab>
195195

196-
The spread must be the first position followed by other props:
196+
The spread must be at the first position, followed by other props:
197197

198198
<CodeTab labels={["ReScript"]}>
199199

0 commit comments

Comments
 (0)