react-highlight-updates
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-highlight-updates

CircleCI

Visually highlight when React components are updated

About

Ever wondered which of your components are actually re-rendering when you update your store, set state, or even just click on an element? Now you can easily visually highlight which components are being updated and track down the cause, to improve your apps' performance.

Installation

npm install react-highlight-updates --save --save-exact

Usage

Simply import the highlightUpdates function and call it.

import { highlightUpdates } from 'react-highlight-updates';
 
highlightUpdates();

The default highlight color is rgba(255, 0, 0, 0.5), but you can pass a custom color to the highlightUpdates function.

You should use a transparent color for the best results e.g.

highlightUpdates('rgba(0, 255, 0, 0.5)');

Package Sidebar

Install

npm i react-highlight-updates

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dabapps