https://github.com/ryanflorence/react-lumberjack
Logging setState for React
https://github.com/ryanflorence/react-lumberjack
Last synced: 7 months ago
JSON representation
Logging setState for React
- Host: GitHub
- URL: https://github.com/ryanflorence/react-lumberjack
- Owner: ryanflorence
- Created: 2016-08-12T00:34:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-20T16:25:39.000Z (over 9 years ago)
- Last Synced: 2024-12-28T03:42:15.950Z (over 1 year ago)
- Language: JavaScript
- Size: 301 KB
- Stars: 276
- Watchers: 7
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-projects - react-lumberjack - Logging setState for React ⭐278 `JavaScript` (📦 Legacy & Inactive Projects)
README
React Lumberjack
================
Logs `setState` calls across your app for debugging bliss.

Installation
------------
`npm install react-lumberjack`
Usage
-----
Just include it before you do any rendering with React.
```js
import 'react-lumberjack'
```
or
```js
require('react-lumberjack')
```
or
```xml
```
Make sure not to include it in your production build, ofc.
"Time Travel"
-------------
```js
Lumberjack.back()
Lumberjack.forward()
```
This is super hacky, has 8 trillion edge-cases, but I'm finding it
useful for debugging a few states back. If a component is unmounted at
some point, there's no going back.
Consider it a fun proof-of-concept that at least one person (me) finds
useful :P