You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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).
166
166
- Punning!
167
167
168
-
### Spread props
168
+
### Spread Props (from v10.1)
169
169
170
-
The JSX spread props is supported.
170
+
JSX props spread is supported now, but in a stricter way than in JS.
171
171
172
172
<CodeTablabels={["ReScript", "JS Output"]}>
173
173
@@ -183,7 +183,7 @@ React.createElement(Comp, {
183
183
184
184
</CodeTab>
185
185
186
-
The multiple spreads are not allowed:
186
+
Multiple spreads are not allowed:
187
187
188
188
<CodeTablabels={["ReScript"]}>
189
189
@@ -193,7 +193,7 @@ The multiple spreads are not allowed:
193
193
194
194
</CodeTab>
195
195
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:
0 commit comments