New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-pure-debug

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pure-debug

This tool help you to debug why your PureComponent will render

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 21 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts