1.0.0 • Published 7 years ago

react-highlight-updates v1.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

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)');