项目
在 GitHub 查看
ryanflorence/react-lumberjack
关于
Logging setState for React
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
import 'react-lumberjack'
or
require('react-lumberjack')
or
<script src="https://npmcdn.com/[email protected]"></script>
Make sure not to include it in your production build, ofc.
"Time Travel"
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
探索相关项目
加载中…