mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Typo in first commit.
This commit is contained in:
1 parent
b4007e85b8
commit
3d37c95533
1 file changed
+1
-1
@@ -51,7 +51,7 @@ But what about the `name` prop? Or the `title` prop? Or `onMouseOver`?
|
||||
|
||||
> NOTE:
|
||||
>
|
||||
> In the example below, the `--harmony ` flag is required as this is syntax is an experimental ES7 syntax. If using the in-browser JSX transformer, simply open your script with `<script type="text/jsx;harmony=true">`. See the [Rest and Spread Properties ...](http://facebook.github.io/react/docs/transferring-props.html#rest-and-spread-properties-...) section below for more details.
|
||||
> In the example below, the `--harmony ` flag is required as this syntax is an experimental ES7 syntax. If using the in-browser JSX transformer, simply open your script with `<script type="text/jsx;harmony=true">`. See the [Rest and Spread Properties ...](http://facebook.github.io/react/docs/transferring-props.html#rest-and-spread-properties-...) section below for more details.
|
||||
|
||||
Sometimes it's fragile and tedious to pass every property along. In that case you can use [destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) with rest properties to extract a set of unknown properties.
|
||||
|
||||
|
||||
Reference in new issue
Block a user