Skip to content

Commit 9fd079b

Browse files
authored
Merge pull request #12 from oslabs-beta/Joseph-ReadMe
Updated ReadMe to reflect v14.0 changes
2 parents 61b0aed + 7e4bff0 commit 9fd079b

File tree

8 files changed

+46
-32
lines changed

8 files changed

+46
-32
lines changed

README.md

Lines changed: 43 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br>
1010
</h1>
1111

12-
<h4 align="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+
<h4 align="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>
1313

1414
<br>
1515
<p align="center">
@@ -43,18 +43,18 @@
4343
<a href="#how-to-use">How To Use</a> • <a href="#features">Features</a> • <a href="https://reactime.io">Website</a> • <a href="#read-more">Read More</a>
4444
</p>
4545

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.
4747

48-
<b>Reactime 13.0</b> has added the exciting features below:
48+
<b>Reactime 14.0</b> has added the exciting features below:
4949

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.
5252

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.
5555

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.
5858

5959
After installing Reactime, you can test its functionalities with your React application in development mode.
6060

@@ -92,38 +92,52 @@ Reactime is an open source project, and we’d really appreciate your help with
9292

9393
## <b>Features</b>
9494

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
10096

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+
<p align="center">
101+
<img src="./assets/map-viewing.gif" />
102+
</p>
103+
<br>
102104

103-
### 🔹 Next.js
105+
### 🔹 Snapshot Series and Action Comparison
104106

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+
<p align="center">
111+
<img src="./assets/action-comparison.gif" />
112+
</p>
113+
<br>
106114

107115
### 🔹 Recording
108116

109117
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>
114120
<p align="center">
115-
<img src="http://g.recordit.co/KNxvT94qxd.gif" />
121+
<img src="./assets/history-tree.gif" />
116122
</p>
117123
<br>
118124

119-
### 🔹 Viewing
125+
### 🔹 Re-render Optimization
120126

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.
122128

123129
### 🔹 Jumping
124130

125131
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.
126132

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+
127141
### 🔹 TypeScript Support
128142

129143
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
133147
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.
134148
<br>
135149

136-
<p align="center">
137-
<img src="./assets/nextjs.gif" />
138-
</p>
139-
<br>
140-
141150
### <b>Additional Features</b>
142151

143152
- Identifying unnecessary re-renders
@@ -222,6 +231,11 @@ After cloning this repository, developers can simply run `npm run docs` at the r
222231
- **Kristina Wallen** - [@kristinawallen](https://github.com/kristinawallen)
223232
- **Quan Le** - [@blachfog](https://github.com/Blachfog)
224233
- **Robert Maeda** - [@robmaeda](https://github.com/robmaeda)
234+
- **David Kim** - [@codejunkie7](https://github.com/codejunkie7)
235+
- **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton)
236+
- **Kevin HoEun. Lee** - [@khobread](https://github.com/khobread)
237+
- **Christopher LeBrett** - [@fscgolden](https://github.com/fscgolden)
238+
- **Joseph Park** - [@joeepark](https://github.com/joeepark)
225239

226240
## <b>License </b>
227241

assets/action-comparison.gif

5.94 MB
Loading

assets/history-tree.gif

2.48 MB
Loading

assets/map-viewing.gif

4.15 MB
Loading

assets/new-reactime.gif

4.34 MB
Loading

src/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ src/
3535
│   ├── module.d.ts #
3636
│   ├── package.json #
3737
│   ├── puppeteerServer.js #
38+
│   ├── routes.ts # Interfaces with the browser history stack during inter-route time travel in React Router applications.
3839
│   ├── timeJump.ts # Rerenders DOM based on snapshot from background script
3940
│   └── tree.ts # Custom structure to send to background
4041

src/app/components/Action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const Action = (props: ActionProps): JSX.Element => {
114114
<Trigger type="trigger">
115115
<div className="action-component-trigger" style={index > sliderIndex ? { color: '#5f6369' } : {}}>
116116
<div className="action-component-text">
117-
<input key={`ActionInput${displayName}`} type="text" className="actionname" placeholder={`${displayName}: ${componentName !== 'nameless' ? componentName : ''} `} />
117+
<input key={`ActionInput${displayName}`} type="text" className="actionname" placeholder={`Snapshot: ${displayName}`} />
118118
</div>
119119
<button className="time-button" type="button">
120120
{displayTime}

src/app/components/RouteDescription.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const RouteDescription = (props: RouteProps): JSX.Element => {
1111
return (
1212
<div className="routedescription">
1313
<h3 className="route">
14-
Route:
15-
{url.pathname}
14+
Route: {url.pathname}
1615
</h3>
1716
{actions}
1817
</div>

0 commit comments

Comments
 (0)