README
apeman-react-mixin-pure
apeman react package for pure mixin
Installation
$ npm install apeman-react-mixin-pure --save
Usage
#!/usr/bin/env node
'use strict'
import React from 'react'
import {ApPureMixin} from 'apeman-react-mixin-pure'
// Define own component with the mixin
const ExampleComponent = React.createClass({
mixins: [
// Implement shouldComponentUpdate with shallow compare
ApPureMixin
],
render () {
return (
<div>{ /* ... */ }</div>
)
}
})
License
This software is released under the MIT License.