fix(docs): adjust babel release to match the babel.js changelog
songawee committed
Oct 8, 2015 at 12:44 UTC
8fb436a5eb3616e97875093eb19eea863813610a
1 file changed
+3
-3
docs/_posts/2015-10-07-react-v0.14.md
+3
-3
@@ -99,7 +99,7 @@ If you can’t use `npm` yet, we provide pre-built browser builds for your conve
99
```
100
101
This change also applies to the return result of `ReactDOM.render` when passing a DOM node as the top component. As with refs, this change does not affect custom components.
102
-
102
+
103
With this change, we’re deprecating `.getDOMNode()` and replacing it with `ReactDOM.findDOMNode` (see below). If your components are currently using `.getDOMNode()`, they will continue to work with a warning until 0.15.
104
105
- #### Stateless functional components
@@ -124,7 +124,7 @@ If you can’t use `npm` yet, we provide pre-built browser builds for your conve
124
```
125
126
These components behave just like a React class with only a `render` method defined. Since no component instance is created for a functional component, any `ref` added to one will evaluate to `null`. Functional components do not have lifecycle methods, but you can set `.propTypes` and `.defaultProps` as properties on the function.
127
-
127
+
128
This pattern is designed to encourage the creation of these simple components that should comprise large portions of your apps. In the future, we’ll also be able to make performance optimizations specific to these components by avoiding unnecessary checks and memory allocations.
129
130
- #### Deprecation of react-tools
@@ -133,7 +133,7 @@ If you can’t use `npm` yet, we provide pre-built browser builds for your conve
133
134
- #### Compiler optimizations
135
136
- React now supports two compiler optimizations that can be enabled in Babel 5.8.23 and newer. Both of these transforms **should be enabled only in production** (e.g., just before minifying your code) because although they improve runtime performance, they make warning messages more cryptic and skip important checks that happen in development mode, including propTypes.
136
+ React now supports two compiler optimizations that can be enabled in Babel 5.8.24 and newer. Both of these transforms **should be enabled only in production** (e.g., just before minifying your code) because although they improve runtime performance, they make warning messages more cryptic and skip important checks that happen in development mode, including propTypes.
137
138
**Inlining React elements:** The `optimisation.react.inlineElements` transform converts JSX elements to object literals like `{type: 'div', props: ...}` instead of calls to `React.createElement`.
139