From 4abc1aae6bc0e60d9c41305bf952053b4083a04f Mon Sep 17 00:00:00 2001 From: James Seppi Date: Thu, 17 Jul 2014 16:23:07 -0500 Subject: [PATCH 1/4] fix typo --- docs/_posts/2014-07-13-react-v0.11-rc1.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/_posts/2014-07-13-react-v0.11-rc1.md b/docs/_posts/2014-07-13-react-v0.11-rc1.md index 9f300a9f9550..ad7adac9a7ec 100644 --- a/docs/_posts/2014-07-13-react-v0.11-rc1.md +++ b/docs/_posts/2014-07-13-react-v0.11-rc1.md @@ -22,6 +22,8 @@ We've also published version `0.11.0-rc1` of the `react` and `react-tools` packa 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. @@ -29,7 +31,7 @@ Starting in React 0.11, `getDefaultProps()` is called only once when `React.crea ## 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 `