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="demo2.gif"alt="Demo of Reactime"style="width: 55%">
13
14
</p>
14
15
15
16
A debugging tool for React. Records state whenever state is changed and allows user to jump to any previous recorded state.
16
17
17
-
Two parts are needed for this tool to function. The chrome extension must be installed, and the NPM package must be installed and used in the React code.
18
+
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.
19
+
20
+
After successfully installing the chrome extension, you can test Reactime functionalities in the demo repositories below.
4. Done! That's all you have to do to link your React project to our library.
@@ -43,7 +49,7 @@ reactTimeTravel(rootContainer);
43
49
44
50
After installing both the Chrome extension and the npm package, just open up your project in the browser.
45
51
46
-
Then open up your Chrome DevTools. There'll be a new tab called reactime.
52
+
Then open up your Chrome DevTools. There'll be a new tab called Reactime.
47
53
48
54
## Features
49
55
@@ -53,13 +59,11 @@ Whenever state is changed (whenever setState is called), this extension will cre
53
59
54
60
### Viewing
55
61
56
-
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree.
57
-
58
-
The selected snapshot can also be diffed/compared with the current dom.
62
+
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree. Also, snapshots can be diffed with the previous snapshot, which can be viewed under the Diff tab.
59
63
60
64
### Jumping
61
65
62
-
The most important feature of all. Jumping to any previous recorded snapshot. Hitting the jump button on any snapshot will change the dom by setting their state. One important thing to note. 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.
66
+
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. One important thing to note 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.
63
67
64
68
### Others
65
69
@@ -70,7 +74,7 @@ Other handy features include:
70
74
- a play button to move through snapshots automatically
71
75
- a pause which button stops recording each snapshot
72
76
- a lock button to freeze the DOM in place. setState will lose all functionality while the extension is locked
73
-
- a persist button to keep snapshots upon refresh. handy when changing code and debugging
77
+
- a persist button to keep snapshots upon refresh (handy when changing code and debugging)
0 commit comments