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

10
+
11
+
<palign="center">
12
+
<imgsrc="demo.gif"alt="Demo of Reactime">
13
+
</p>
2
14
3
15
A debugging tool for React. Records state whenever state is changed and allows user to jump to any previous recorded state.
4
16
5
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.
6
18
7
19
## Installing
8
20
9
-
1. Download the Chrome extension from Chrome Web Store.
21
+
1. Download the [extension](https://chrome.google.com/webstore/detail/reactime/cgibknllccemdnfhfpmjhffpjfeidjga) from Chrome Web Store.
22
+
23
+
2. Install the [npm package](https://www.npmjs.com/package/reactime) in your code.
10
24
11
-
2. Install the [npm package](https://www.npmjs.com/package/react-time-travel) in your code.
12
25
```
13
-
npm i react-time-travel
26
+
npm i reactime
14
27
```
28
+
15
29
3. Call the library method on your root container after rendering your App.
After installing both the Chrome extension and the npm package, just open up your project in the browser.
44
+
After installing both the Chrome extension and the npm package, just open up your project in the browser.
31
45
32
-
Then open up your Chrome DevTools. There'll be a new tab called React-Time-Travel.
46
+
Then open up your Chrome DevTools. There'll be a new tab called reactime.
33
47
34
48
## Features
35
49
36
50
### Recording
37
51
38
-
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 React-Time-Travel panel.
52
+
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.
39
53
40
54
### Viewing
41
55
42
-
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree.
56
+
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree.
43
57
44
58
The selected snapshot can also be diffed/compared with the current dom.
45
59
@@ -49,21 +63,22 @@ The most important feature of all. Jumping to any previous recorded snapshot. Hi
49
63
50
64
### Others
51
65
52
-
Other handy features include:
53
-
* multiple tabs support
54
-
* a slider to move through snapshots quickly
55
-
* a play button to move through snapshots automatically
56
-
* a pause which button stops recording each snapshot
57
-
* a lock button to freeze the DOM in place. setState will lose all functionality while the extension is locked
58
-
* a persist button to keep snapshots upon refresh. handy when changing code and debugging
59
-
* export/import the current snapshots in memory
66
+
Other handy features include:
67
+
68
+
- multiple tabs support
69
+
- a slider to move through snapshots quickly
70
+
- a play button to move through snapshots automatically
71
+
- a pause which button stops recording each snapshot
72
+
- 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
After installing both the Chrome extension and the npm package, just open up your project in the browser.
45
45
46
-
Then open up your Chrome DevTools. There'll be a new tab called React-Time-Travel.
46
+
Then open up your Chrome DevTools. There'll be a new tab called reactime.
47
47
48
48
## Features
49
49
50
50
### Recording
51
51
52
-
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 React-Time-Travel panel.
52
+
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.
0 commit comments