Rest/Spread Properties may not be part of ES7
According to the http://www.2ality.com/2015/11/tc39-process.html it is not a good idea to guess target ES version until the proposal reaches later phases. Even the proposal repository now states > It is a Stage 2 proposal for ECMAScript. < (it has been changed in https://github.com/sebmarkbage/ecmascript-rest-spread/commit/e9813ac78ad59994585f12e17be57e776378fdc4)
Martin Hujer committed
Nov 20, 2015 at 19:36 UTC
23edc0d274d253bbb2133ee7cdd417815601f441
2 files changed
+3
-3
docs/docs/02.2-jsx-spread.md
+1
-1
@@ -49,4 +49,4 @@ You can use this multiple times or combine it with other attributes. The specifi
49
50
## What's with the weird `...` notation?
51
52
-The `...` operator (or spread operator) is already supported for [arrays in ES6](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator). There is also an ES7 proposal for [Object Rest and Spread Properties](https://github.com/sebmarkbage/ecmascript-rest-spread). We're taking advantage of these supported and developing standards in order to provide a cleaner syntax in JSX.
52
+The `...` operator (or spread operator) is already supported for [arrays in ES6](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator). There is also an ECMAScript proposal for [Object Rest and Spread Properties](https://github.com/sebmarkbage/ecmascript-rest-spread). We're taking advantage of these supported and developing standards in order to provide a cleaner syntax in JSX.
docs/docs/06-transferring-props.md
+2
-2
@@ -20,7 +20,7 @@ If you don't use JSX, you can use any object helper such as ES6 `Object.assign`
20
React.createElement(Component, Object.assign({}, this.props, { more: 'values' }));
21
```
22
23
-The rest of this tutorial explains best practices. It uses JSX and experimental ES7 syntax.
23
+The rest of this tutorial explains best practices. It uses JSX and experimental ECMAScript syntax.
24
25
## Manual Transfer
26
@@ -132,7 +132,7 @@ var FancyCheckbox = React.createClass({
132
133
Rest properties allow you to extract the remaining properties from an object into a new object. It excludes every other property listed in the destructuring pattern.
134
135
-This is an experimental implementation of an [ES7 proposal](https://github.com/sebmarkbage/ecmascript-rest-spread).
135
+This is an experimental implementation of an [ECMAScript proposal](https://github.com/sebmarkbage/ecmascript-rest-spread).
136
137
```javascript
138
var { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };