Skip to content

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

License

Notifications You must be signed in to change notification settings

jsellam/pure-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published