react-pure-debug

1.0.1 • Public • Published

pure-debug

React PureComponent debugger. This component log why your PureComponent will render.

Installation

With npm

npm install react-pure-debug --save

Usage

ìmport PureDebug from 'react-pure-debug';

In your component class, you have just to replace :

MyComponent extends React.PureComponent {...

by

MyComponent extends PureDebug {...

The result

You will see log like this in your console. alt text

  • Red cross when the prop or state is the same but not the strict comparaison
  • Green check when the prop or state are different.

Comming soon :

memoDebug()

/react-pure-debug/

    Package Sidebar

    Install

    npm i react-pure-debug

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    61 kB

    Total Files

    8

    Last publish

    Collaborators

    • chloridrik