Practice
Mixins are a way to completely separate components so that they can share common functionality. Mixins should not be used and can be replaced with components or higher-order decorators .
One of the most commonly used mixins is
const PureRenderMixin = require('react-addons-pure-render-mixin')
const Button = React.createClass({
mixins: [PureRenderMixin],
// ...
})
Comments