Log setState in your React apps.
npm install react-log-stateA little tweak on @ryanflorence's React Lumberjack. Lets you track setState calls on React elements at runtime.

#### npm
Install package:
```
npm install react-log-state`
And include in your code:js`
require('react-log-state')
####
`
Open up your browser's console. Select an element using the React DevTools (which makes it available on the $r variable). Then activate logging:`js`
ReactLogState($r)setState
That's it! Any calls to will be logged in the console.
---
You can also hook into all setState calls globally:`js`
ReactLogState.logAll()setState` operates, so you may have a bad time if any of your components making a lot of changes to state.
Of course, this technically alters how