mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +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:
|
||||
|
||||
```js
|
||||
var PureRenderMixin = require('react').addons.PureRenderMixin;
|
||||
var PureRenderMixin = require('react/addons').addons.PureRenderMixin;
|
||||
React.createClass({
|
||||
mixins: [PureRenderMixin],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user