You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgsrc="demo.gif"alt="Demo of Reactime"style="width: 55%">
18
17
</p>
19
18
20
-
Reactime is a debugging tool for React developers. It records state whenever state is changed and allows user to jump to any previous recorded state.
19
+
Reactime is a debugging tool for React developers. It records state whenever it is changed and allows the user to jump to any previously recorded state.
21
20
22
-
One important thing to note. This devtool is for React apps using only stateful components and prop drilling. If you're using Redux, Hooks, Context, or functional components, this devtool will not function on your app.
21
+
This dev tool is for React apps using stateful components and prop drilling, and has beta support for Context API, conditional state routing, Hooks (useState & useEffect) and functional components.
23
22
24
-
Another thing is that this library does not work well when mixing React with direct DOM manipulation. Since DOM manipulation doesn't change any React state, this library cannot record or even detect that change. Of course, you should be avoiding mixing the two in the first place.
23
+
One thing to note is that this library does not work well when mixing React with direct DOM manipulation.
25
24
26
-
Two parts are needed for this tool to function. The <ahref="https://chrome.google.com/webstore/detail/react-time-travel/cgibknllccemdnfhfpmjhffpjfeidjga">chrome extension</a> must be installed, and the NPM package must be installed and used in the React code.
25
+
Two parts are needed for this tool to function. The <ahref="https://chrome.google.com/webstore/detail/react-time-travel/cgibknllccemdnfhfpmjhffpjfeidjga"><strong>chrome extension</strong></a> must be installed, and the <ahref="https://www.npmjs.com/package/reactime"><strong>NPM package</strong></a> must be installed and used in the React code.
27
26
28
27
After successfully installing the chrome extension, you can test Reactime functionalities in the demo repositories below.
29
28
@@ -63,7 +62,7 @@ Then open up your Chrome DevTools. There'll be a new tab called Reactime.
63
62
64
63
### Recording
65
64
66
-
Whenever state is changed (whenever setState is called), this extension will create a snapshot of the current state tree and record it. Each snapshot will be displayed in Chrome DevTools under the Reactime panel.
65
+
Whenever state is changed (whenever setState or useState is called), this extension will create a snapshot of the current state tree and record it. Each snapshot will be displayed in Chrome DevTools under the Reactime panel.
67
66
68
67
### Viewing
69
68
@@ -73,14 +72,15 @@ You can click on a snapshot to view your app's state. State can be visualized in
73
72
74
73
Jumping is the most important feature of all. It allows you to jump to any previous recorded snapshots. Hitting the jump button on any snapshot will change the DOM by setting their state.
75
74
76
-
### Others
77
-
78
-
Other handy features include:
75
+
### And Much More
79
76
77
+
- multiple tree graph branches depicting state changes
78
+
- tree graph hover functionality to view state changes
79
+
- ability to pan and zoom tree graph
80
80
- multiple tabs support
81
81
- a slider to move through snapshots quickly
82
82
- a play button to move through snapshots automatically
83
-
- a pause which button stops recording each snapshot
83
+
- a pause button, which stops recording each snapshot
84
84
- a lock button to freeze the DOM in place. setState will lose all functionality while the extension is locked
85
85
- a persist button to keep snapshots upon refresh (handy when changing code and debugging)
Copy file name to clipboardExpand all lines: readme.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@
18
18
19
19
Reactime is a debugging tool for React developers. It records state whenever it is changed and allows the user to jump to any previously recorded state.
20
20
21
-
This dev tool is for React apps using stateful components and prop drilling, and has beta support for Context API, conditional state routing, Hooks (useState) and functional components.
21
+
This dev tool is for React apps using stateful components and prop drilling, and has beta support for Context API, conditional state routing, Hooks (useState, useEffect) and functional components.
22
22
23
23
One thing to note is that this library does not work well when mixing React with direct DOM manipulation.
24
24
@@ -95,6 +95,10 @@ Jumping is the most important feature of all. It allows you to jump to any previ
0 commit comments