From 0606de0db7276e16473577bc57a73053e6fe77c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Sun, 13 Jul 2014 12:54:41 -0700 Subject: [PATCH] 0.11-rc blog post (cherry picked from commit b8cc3f510a61b6d89c21a9a0cac969346f28724c) --- docs/_posts/2014-07-13-react-v0.11-rc1.md | 147 ++++++++++++++++++++++ docs/downloads/react-0.11.0-rc1.zip | Bin 0 -> 716707 bytes 2 files changed, 147 insertions(+) create mode 100644 docs/_posts/2014-07-13-react-v0.11-rc1.md create mode 100644 docs/downloads/react-0.11.0-rc1.zip diff --git a/docs/_posts/2014-07-13-react-v0.11-rc1.md b/docs/_posts/2014-07-13-react-v0.11-rc1.md new file mode 100644 index 0000000000..091f6c6b59 --- /dev/null +++ b/docs/_posts/2014-07-13-react-v0.11-rc1.md @@ -0,0 +1,147 @@ +--- +title: React v0.11 RC +layout: post +author: Paul O’Shannessy +--- + +It's that time again… we're just about ready to ship a new React release! v0.11 includes a wide array of bug fixes and features. We highlighted some of the most important changes below, along with the full changelog. + +The release candidate is available for download from the CDN: + +* **React** + Dev build with warnings: + Minified build for production: +* **React with Add-Ons** + Dev build with warnings: + Minified build for production: +* **In-Browser JSX transformer** + + +We've also published version `0.11.0-rc1` of the `react` and `react-tools` packages on npm and the `react` package on bower. + +Please try these builds out and [file an issue on GitHub](https://github.com/facebook/react/issues/new) if you see anything awry. + + +# Blog Post + +## `getDefaultProps` + +Starting in React 0.11, `getDefaultProps()` is called only once when `React.createClass()` is called, instead of each time a component is rendered. This means that `getDefaultProps()` can no longer vary its return value based on `this.props` and any objects will be shared across all instances. This change improves performance and will make it possible in the future to do PropTypes checks earlier in the rendering process, allowing us to give better error messages. + + +## Rendering to `null` + +Since React's release, people have been using work arounds to "render nothing". Usually this means returning an empty `
` or ``. Some people even got clever and started returning `