react-pure-props
compare only the props. If the state does not change, do not re-ender.
Last updated 7 years ago by younkue .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-pure-props 
SYNC missed versions from official npm registry.

react-pure-props npm version

It is a little different from the PureComponent of react.

First, compare only the props. If the state does not change, do not re-render.

However, if the update does not change only through setState, it also re-render.

Installation

npm

$ npm install react-pure-props

How to use

import PureProps from "react-pure-props";

class Component extends PureProps<{}, {}> {
    public render() {
        return (
            <div />
        );
    }
}

License

MIT License

Copyright (c) 2019 Daybrush

Current Tags

  • 0.1.5                                ...           latest (7 years ago)

6 Versions

  • 0.1.5                                ...           7 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (7)

Copyright 2013 - present © cnpmjs.org | Home |