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
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.
21
21
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.
22
+
This dev tool is for React apps using stateful components and prop drilling, and has experimental support for Context API, Router, Hooks (useState) and functional components.
23
23
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.
24
+
One 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.
25
25
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.
26
+
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 <strong>NPM package</strong> must be installed and used in the React code.
27
27
28
28
After successfully installing the chrome extension, you can test Reactime functionalities in the demo repositories below.
29
29
@@ -40,15 +40,15 @@ After successfully installing the chrome extension, you can test Reactime functi
40
40
npm i reactime
41
41
```
42
42
43
-
3. Call the library method on your root container after rendering your App.
43
+
3. Call the library method on your root container and App after rendering your App.
4. Done! That's all you have to do to link your React project to our library.
@@ -63,7 +63,7 @@ Then open up your Chrome DevTools. There'll be a new tab called Reactime.
63
63
64
64
### Recording
65
65
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.
66
+
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
67
68
68
### Viewing
69
69
@@ -77,6 +77,8 @@ Jumping is the most important feature of all. It allows you to jump to any previ
77
77
78
78
Other handy features include:
79
79
80
+
- multiple branches depicting state changes
81
+
- a hover functionality to view state changes
80
82
- multiple tabs support
81
83
- a slider to move through snapshots quickly
82
84
- a play button to move through snapshots automatically
0 commit comments