0.7.1 • Published 6 years ago

react-rerender-warnings v0.7.1

Weekly downloads
15
License
-
Repository
github
Last release
6 years ago

MIT github react-rerender-warnings issues github twitter react-rerender-warnings

react-rerender-warnings

Helps you catch avoidable rerender with rerender warnings - don't update if you dont have to

Installation

  • Install react-rerender-warnings first
yarn add react-rerender-warnings

Setup

Add this anywhere in your app and you're done! You'll now get beautiful logs of prop and state changes that could have been avioded throught your entire app.

NOTE: Supports react 16 and fiber. No support for ES5's createClass.

import React from 'react';
import ReRenderWarnings from 'react-rerender-warnings';


process.env.NODE_ENV !== 'production' &&  ReRenderWarnings(React);

Done!

Contributing

Please share what you got and make a pr!