You get a bonus - 1 coin for daily activity. Now you have 1 coin

What are React Mixins? in REACT

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

PureRenderMixin
You can use it in some components to prevent unnecessary re-renders when the props and state are shallowly equal to the previous props and state:
const PureRenderMixin = require('react-addons-pure-render-mixin')

const Button = React.createClass({
  mixins: [PureRenderMixin],
  // ...
})

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone