Skip to content

Commit e65e5be

Browse files
authored
Merge pull request #12 from oslabs-beta/reactime7
refactoring of functions in PerformanceVisx to improve performance and readability and README updated
2 parents 0aa1ba6 + 43ca9c8 commit e65e5be

File tree

6 files changed

+93
-583
lines changed

6 files changed

+93
-583
lines changed

README.md

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,66 @@
1-
<p align="center">
2-
<img src ="./assets/readme-logo-300-no-version.png" width="300"/>
3-
</p>
41
<h1 align="center">
2+
<br>
3+
<img src ="./assets/readme-logo-300-no-version.png" width="300"/>
4+
<br>
5+
<br>
56
React Performance Tool
6-
7-
<br>Nominated for the Productivity Booster award
8-
<br><a href="https://osawards.com/react/">React Open Source Awards 2020</a>
7+
<br>
8+
<a href="https://osawards.com/react/"> Nominated for React Open Source Awards 2020 </a>
9+
<br>
910
</h1>
1011

12+
<h4 align="center"> Reactime is a performance and debugging tool for React developers. It records a snapshot whenever a target application's state is changed and allows the user to jump to any previously recorded state. </h4>
1113

12-
[![GitHub](https://img.shields.io/github/license/oslabs-beta/reactime)](https://github.com/oslabs-beta/reactime) [![Build Status](https://travis-ci.com/oslabs-beta/reactime.svg?branch=master)](https://travis-ci.com/oslabs-beta/reactime) [![npm version](https://badge.fury.io/js/reactime.svg)](http://badge.fury.io/js/reactime) ![BabelPresetPrefs](https://img.shields.io/badge/babel%20preset-airbnb-ff69b4) ![LintPrefs](https://img.shields.io/badge/linted%20with-eslint-blueviolet)
14+
<br>
15+
<p align="center">
16+
<a href="https://github.com/oslabs-beta/reactime">
17+
<img src="https://img.shields.io/github/license/oslabs-beta/reactime" alt="GitHub">
18+
</a>
19+
<a href="https://travis-ci.com/oslabs-beta/reactime">
20+
<img src="https://travis-ci.com/oslabs-beta/reactime.svg?branch=master" alt="Build Status">
21+
</a>
22+
<a href="http://badge.fury.io/js/reactime">
23+
<img src="https://badge.fury.io/js/reactime.svg" alt="npm version">
24+
</a>
25+
<img src="https://img.shields.io/badge/babel%20preset-airbnb-ff69b4" alt="BabelPresetPrefs">
26+
<img src="https://img.shields.io/badge/linted%20with-eslint-blueviolet" alt="LintPrefs">
27+
</p>
28+
29+
<!-- [![GitHub](https://img.shields.io/github/license/oslabs-beta/reactime)](https://github.com/oslabs-beta/reactime) [![Build Status](https://travis-ci.com/oslabs-beta/reactime.svg?branch=master)](https://travis-ci.com/oslabs-beta/reactime) [![npm version](https://badge.fury.io/js/reactime.svg)](http://badge.fury.io/js/reactime) ![BabelPresetPrefs](https://img.shields.io/badge/babel%20preset-airbnb-ff69b4) ![LintPrefs](https://img.shields.io/badge/linted%20with-eslint-blueviolet) -->
1330

14-
<h3 align="center">
31+
<h5 align="center">
1532
<br>
16-
<a href="./README.rus.md">РУССКАЯ ВЕРСИЯ</a> &nbsp; &nbsp; &nbsp; <a href="./README.fr.md">VERSION FRANÇAISE</a>
33+
<a href="./README.rus.md">РУССКАЯ ВЕРСИЯ</a> &nbsp; &nbsp; <a href="./README.fr.md">VERSION FRANÇAISE</a>
1734
<br>
18-
</h3>
35+
</h5>
1936
<br>
2037

2138
<p align="center">
2239
<img src="./assets/reactime7.gif" />
2340
</p>
2441

25-
<b>Reactime</b> is a performance and debugging tool for React developers. It records a snapshot whenever a target application's state is changed and allows the user to jump to any previously recorded state.
42+
<p align="center">
43+
  <a href="#how-to-use">How To Use</a> • <a href="#features">Features</a> • <a href="https://reactime.io">Website</a> • <a href="#readmore">Read More</a>
44+
</p>
2645

2746
Currently, Reactime supports React apps using stateful components and Hooks, with beta support for Recoil and Context API.
2847

2948
<b>Reactime version 7.0</b> beta can help you to avoid unnecessary re-renders. Identifying wasted renders in your React applications is the perfect start to identifying most performance issues.
30-
Reactime 7.0 fixes previous version bugs and incorporates improved visualizations for component relationships. Reactime 7.0 includes expanded [typedoc](https://typedoc.org/api/) documentation for developers looking to contribute to the source code.
49+
Reactime 7.0 fixes previous version bugs and incorporates improved visualizations for component relationships. Reactime 7.0 includes expanded [typedoc](https://typedoc.org/api/) documentation for developers looking to contribute to the source code.
3150

32-
After installing Reactime, you can test its functionalities with your React application in development mode.
51+
After installing Reactime, you can test its functionalities with your React application in development mode.
3352

3453
Please note, the time jumping feature will ONLY work when your application is running in development mode. In production mode, you are able to view your application’s component map but no additional features.
54+
3555
## <b>Installation</b>
3656

37-
To get started, install the Reactime [extension](https://chrome.google.com/webstore/detail/reactime/cgibknllccemdnfhfpmjhffpjfeidjga) from Chrome Web Store.
57+
To get started, install the Reactime [extension](https://chrome.google.com/webstore/detail/reactime/cgibknllccemdnfhfpmjhffpjfeidjga) from Chrome Web Store.
3858

3959
NOTE: The React Developer Tools [extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) is also required for Reactime to run, if you do not already have it installed on your browser.
4060

4161
### <b>Alternative Installation</b>
42-
Use `src/extension/build/build.zip` for manual installation in [Developer mode](https://developer.chrome.com/extensions/faq#faq-dev-01). Turn on 'Allow access to file URLs' in extension details page if testing locally.
4362

63+
Use `src/extension/build/build.zip` for manual installation in [Developer mode](https://developer.chrome.com/extensions/faq#faq-dev-01). Turn on 'Allow access to file URLs' in extension details page if testing locally.
4464

4565
## <b>How to Use</b>
4666

@@ -51,25 +71,30 @@ Then open up your Chrome DevTools and navigate to the Reactime panel.
5171
## <b>Troubleshooting</b>
5272

5373
### <b>Why is Reactime telling me that no React application is found?</b>
74+
5475
Reactime initially runs using the dev tools global hook from the Chrome API. It takes time for Chrome to load this. Try refreshing your application a couple times until you see Reactime running.
5576

56-
### <b>There is a black screen instead of the Reactime extension</b>
57-
Try refreshing the application you want to test and refresh the DevTools by clicking the right mouse button “Reload frame”.
77+
### <b>There is a black screen instead of the Reactime extension</b>
78+
79+
Try refreshing the application you want to test and refresh the DevTools by clicking the right mouse button “Reload frame”.
5880

5981
### <b>I found a bug in Reactime</b>
82+
6083
Reactime is an open source project, and we’d really appreciate your help with improving user experience. Please, create a pull request (or issue) to propose and collaborate on changes to a repository.
6184

6285
## <b>Features</b>
6386

6487
### Re-render Optimization
65-
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.
88+
89+
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.
90+
6691
### Recording
6792

6893
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.
6994

7095
### Viewing
7196

72-
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.
97+
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.
7398

7499
### Jumping
75100

@@ -85,7 +110,7 @@ After cloning this repository, developers can simply run `npm run docs` at the r
85110

86111
### <b>Additional Features</b>
87112

88-
- identifying unnecessary re-renders
113+
- identifying unnecessary re-renders
89114
- hover functionality to view tooltip details on state visualizations
90115
- ability to pan and zoom on state visualizations
91116
- a dropdown to support development of projects on multiple tabs
@@ -97,12 +122,14 @@ After cloning this repository, developers can simply run `npm run docs` at the r
97122
- declarative titles in the actions sidebar
98123

99124
## <b>Read More</b>
125+
100126
- [Time-Travel State with Reactime](https://medium.com/better-programming/time-traveling-state-with-reactime-6-0-53fdc3ae2a20)
101127
- [React Fiber and Reactime](https://medium.com/@aquinojardim/react-fiber-reactime-4-0-f200f02e7fa8)
102128
- [Meet Reactime - a time-traveling State Debugger for React](https://medium.com/@yujinkay/meet-reactime-a-time-traveling-state-debugger-for-react-24f0fce96802)
103129
- [Deep in Weeds with Reactime, Concurrent React_fiberRoot, and Browser History Caching](https://itnext.io/deep-in-the-weeds-with-reactime-concurrent-react-fiberroot-and-browser-history-caching-7ce9d7300abb)
104130

105131
## <b>Authors</b>
132+
106133
- **Becca Viner** - [@rtviner](https://github.com/rtviner)
107134
- **Caitlin Chan** - [@caitlinchan23](https://github.com/caitlinchan23)
108135
- **Kim Mai Nguyen** - [@Nkmai](https://github.com/Nkmai)
@@ -141,4 +168,3 @@ After cloning this repository, developers can simply run `npm run docs` at the r
141168
## <b>License </b>
142169

143170
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
144-

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"@fortawesome/free-solid-svg-icons": "^5.15.1",
114114
"@fortawesome/react-fontawesome": "^0.1.12",
115115
"@visx/axis": "^1.0.0",
116+
"@visx/brush": "^1.2.0",
116117
"@visx/clip-path": "^1.0.0",
117118
"@visx/event": "^1.0.0",
118119
"@visx/glyph": "^1.0.0",

0 commit comments

Comments
 (0)