Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Log the number of updates occurring, broken down by components.

License

Notifications You must be signed in to change notification settings

fabiospampinato/react-log-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Log Updates

Log the number of updates occurring, broken down by components.

Note: you'll have to attach React's DevTools before being able to see any logs.

Install

npm install --save react-log-updates

Usage

import logUpdates from 'react-log-updates';

logUpdates ({
  enabled: IS_DEVELOPMENT
  // collapsed: false // Don't collapse the console group
  // include: /Foo|Bar/i // Filter out if the name of the component doesn't match this regex
  // exclude: /Baz/i // Filter out if the name of the component matches this regex
});

Demo

Example Output

Related

License

MIT © Fabio Spampinato

About

Log the number of updates occurring, broken down by components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages