mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Corrected pure-render-mixin documentation
Fixed the PureRenderMixin documentation which was incorrectly importing the base React library instead of ReactWithAddons.
This commit is contained in:
@@ -11,7 +11,7 @@ If your React component's render function is "pure" (in other words, it renders
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var PureRenderMixin = require('react').addons.PureRenderMixin;
|
var PureRenderMixin = require('react/addons').addons.PureRenderMixin;
|
||||||
React.createClass({
|
React.createClass({
|
||||||
mixins: [PureRenderMixin],
|
mixins: [PureRenderMixin],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user