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
Copy file name to clipboardExpand all lines: README.md
+43-29Lines changed: 43 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
<br>
10
10
</h1>
11
11
12
-
<h4align="center"> Reactime is a performance and debugging tool for React developers <b>(Beta version for Gatsby and Next.js)</b>. It records a snapshot whenever a target application's state is changed and allows the user to jump to any previously recorded state. It also detects the amount of renders of each component and average time of rendering.</h4>
12
+
<h4align="center"> Reactime is an open source Chrome developer tool for time travel debugging and performance monitoring in React applications. Reactime enables developers to record snapshots of application state, jump between and inspect state snapshots, and monitor performance metrics such as component render time and render frequency. </h4>
13
13
14
14
<br>
15
15
<palign="center">
@@ -43,18 +43,18 @@
43
43
<ahref="#how-to-use">How To Use</a> • <ahref="#features">Features</a> • <ahref="https://reactime.io">Website</a> • <ahref="#read-more">Read More</a>
44
44
</p>
45
45
46
-
Currently, Reactime supports React apps using stateful components and Hooks, with beta support for Recoil and Context API and frameworks like Gatsby and Next.js.
46
+
Currently, Reactime supports React apps (now including React Router apps) using stateful components and Hooks, with beta support for Recoil and Context API and frameworks like Gatsby and Next.js.
47
47
48
-
<b>Reactime 13.0</b> has added the exciting features below:
48
+
<b>Reactime 14.0</b> has added the exciting features below:
49
49
50
-
I. Action Comparison Tool
51
-
Users now have the ability to name, save, and analyze specific action snapshots within a saved series. This feature allows engineers to compare component render times throughout the development process of their application, providing them with metrics to show any improvements or changes.
50
+
I. React Router Compatibility <br>
51
+
Reactime is now compatible with React Router applications! Prior to Reactime 14.0, recording state snapshots as the user navigated across various routes was possible, but time travel debugging was only possible for the current route (i.e. jumping back to a prior state at a different route was not possible). In order to streamline debugging of applications with multiple routes, Reactime 14.0 added functionality that allows the user to time-travel back to different routes, including live updating in the browser to reflect the state of their application at that previously visited route.
52
52
53
-
II. Reactime Visual Tutorial Walkthrough
54
-
While Reactime offers a user friendly and intuitive interface, users can now access a guided tutorial, walking the user through each feature while explaining practical use cases and added benefits that Reactime can provide. The walkthrough utilizes the Intro.js library, providing a visual experience that highlights and cycles through each COMPONENT displayed on the app.
53
+
II. Classifying State Snapshots by Route <br>
54
+
The list of state snapshots in the Reactime dashboard is now classified by route to give the developer visual cues of the snapshot-route relationship and make time travel debugging of various routes easier.
55
55
56
-
III. State Monitoring Toggle Feature
57
-
Added toggle feature allows users to temporarily pause Reactime's state monitoring of the linked application. This allows users to make state changes within their application without populating the actions container within Reactime. Especially useful when trying to limit and compare the number of actions within one series that a user is planning to save. Relinking Reactime to the application is as simple as toggling the record button back to it's original state!
56
+
III. Filtering Performance Metrics by Route <br>
57
+
The Reactime dashboard includes a stacked bar graph showing render times for each component, with a separate bar stack for each snapshot. With Reactime 14.0, this composite bar graph can now be filtered by route to allow the developer to review detailed performance data by route.
58
58
59
59
After installing Reactime, you can test its functionalities with your React application in development mode.
60
60
@@ -92,38 +92,52 @@ Reactime is an open source project, and we’d really appreciate your help with
92
92
93
93
## <b>Features</b>
94
94
95
-
### 🔹 Re-render Optimization
96
-
97
-
One of the most common issues that affects performance in React is unnecessary render cycles. This problem can be fixed by checking your renders in the Performance tab in Chrome DevTools under the Reactime panel.
98
-
99
-
### 🔹 Gatsby
95
+
### 🔹 Viewing
100
96
101
-
Reactime offers fully support for Gatsby applications. You would be able to identify unnecessary renders, duration of each rendering, travel-debugging features and visual representation of the tree components.
97
+
You can view your application's file structure and click on a snapshot to view your app's state. State can be visualized in a Component Graph, JSON Tree, or Performance Graph. Snapshots can be diffed with the previous snapshot, which can be viewed in Diff mode.
98
+
<br>
99
+
<br>
100
+
<palign="center">
101
+
<imgsrc="./assets/map-viewing.gif" />
102
+
</p>
103
+
<br>
102
104
103
-
### 🔹 Next.js
105
+
### 🔹 Snapshot Series and Action Comparison
104
106
105
-
Reactime offers debugging and performance tools for Next.js apps: time-traveling debugging, preventing unnecessary components re-renders and making your application faster.
107
+
You can save a series of state snapshots and use it to analyze changes in component render performance between current and previous series of snapshots. You can also name specific snapshots and compare all snapshots with the same name.
108
+
<br>
109
+
<br>
110
+
<palign="center">
111
+
<imgsrc="./assets/action-comparison.gif" />
112
+
</p>
113
+
<br>
106
114
107
115
### 🔹 Recording
108
116
109
117
Whenever state is changed (whenever setState, 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.
110
-
111
-
### 🔹 Snapshot Series and Action Comparison
112
-
113
-
You can save a series of state snapshots and use it to analyze changes in component render performance between current and previous series of snapshots. You can also name specific snapshots and compare all snapshots with the same name.
118
+
<br>
119
+
<br>
114
120
<palign="center">
115
-
<imgsrc="http://g.recordit.co/KNxvT94qxd.gif" />
121
+
<imgsrc="./assets/history-tree.gif" />
116
122
</p>
117
123
<br>
118
124
119
-
### 🔹 Viewing
125
+
### 🔹 Re-render Optimization
120
126
121
-
You can click on a snapshot to view your app's state. State can be visualized in a Component Graph, JSON Tree, or Performance Graph. Snapshots can be diffed with the previous snapshot, which can be viewed in Diff mode.
127
+
One of the most common issues that affects performance in React is unnecessary render cycles. This problem can be fixed by checking your renders in the Performance tab in Chrome DevTools under the Reactime panel.
122
128
123
129
### 🔹 Jumping
124
130
125
131
Using the actions sidebar, a user can jump to any previous recorded snapshots. Hitting the jump button on any snapshot will allow a user to view state data at any point in the history of the target application.
126
132
133
+
### 🔹 Gatsby
134
+
135
+
Reactime offers full support for Gatsby applications. You would be able to identify unnecessary renders, duration of each rendering, travel-debugging features and visual representation of the tree components.
136
+
137
+
### 🔹 Next.js
138
+
139
+
Reactime offers debugging and performance tools for Next.js apps: time-traveling debugging, preventing unnecessary components re-renders and making your application faster.
140
+
127
141
### 🔹 TypeScript Support
128
142
129
143
Reactime offers beta support for TypeScript applications using stateful class components and functional components. Further testing and development is required for custom hooks, Context API, and Concurrent Mode.
@@ -133,11 +147,6 @@ Reactime offers beta support for TypeScript applications using stateful class co
133
147
After cloning this repository, developers can simply run `npm run docs` at the root level and serve the dynamically generated `/docs/index.html` file on a browser. Doing so will provide a readable, extensible, and interactive GUI view of the structure and interfaces of the codebase.
134
148
<br>
135
149
136
-
<palign="center">
137
-
<imgsrc="./assets/nextjs.gif" />
138
-
</p>
139
-
<br>
140
-
141
150
### <b>Additional Features</b>
142
151
143
152
- Identifying unnecessary re-renders
@@ -222,6 +231,11 @@ After cloning this repository, developers can simply run `npm run docs` at the r
0 commit comments