0.0.7 • Published 7 years ago

component-pure-render v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

介绍

处理组件是否需要执行diff

安装

npm install --save component-pure-render

使用

import {Component} from 'react';
import shouldComponentUpdate from 'component-pure-render';

class ComponentName extends Component {
    constructor(props) {
        super(props);
        this.shouldComponentUpdate = shouldComponentUpdate.bind(this);
    }
    render() {
        return (
            <div>123</div>
        );
    }
}

export default ComponentName;
0.0.7

7 years ago

0.0.6

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago