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

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i react-log-updates

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

31.8 kB

Total Files

21

Last publish

Collaborators

  • fabiospampinato