Skip to content

Commit 1f2a808

Browse files
authored
Merge pull request #109 from oslabs-beta/rydang/readme
update readme
2 parents d84379c + 936c75b commit 1f2a808

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactime",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A library that helps debug React by memorizing the state of components with every render.",
55
"main": "index.js",
66
"repository": {

package/readme.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Reactime
1+
<p align="center">
2+
<img src ="./assets/readme_logo.png" width="400"/>
3+
</p>
4+
5+
# Reactime: A Time Travel Debugger for React
26

37
[![GitHub](https://img.shields.io/github/license/oslabs-beta/reactime)](https://github.com/oslabs-beta/reactime)
48
[![Build Status](https://travis-ci.com/oslabs-beta/reactime.svg?branch=master)](https://travis-ci.com/oslabs-beta/reactime)
@@ -13,7 +17,11 @@
1317
<img src="demo.gif" alt="Demo of Reactime" style="width: 55%">
1418
</p>
1519

16-
A debugging tool for React. Records state whenever state is changed and allows user to jump to any previous recorded state.
20+
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+
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.
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.
1725

1826
Two parts are needed for this tool to function. The <a href="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.
1927

@@ -38,7 +46,7 @@ npm i reactime
3846
const reactime = require('reactime');
3947
4048
const rootContainer = document.getElementById('root');
41-
ReactDom.render(<App />, rootContainer);
49+
ReactDOM.render(<App />, rootContainer);
4250
4351
reactime(rootContainer);
4452
```
@@ -63,7 +71,7 @@ You can click on a snapshot to view your app's state. State can be visualized in
6371

6472
### Jumping
6573

66-
Jumping is the most important feature of all. It allows you to jump to any previous recorded snapshots. Hitting the jump button on any snapshot will change the DOM by setting their state. One important 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.
74+
Jumping is the most important feature of all. It allows you to jump to any previous recorded snapshots. Hitting the jump button on any snapshot will change the DOM by setting their state.
6775

6876
### Others
6977

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
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.
2121

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.
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.
25+
2226
Two parts are needed for this tool to function. The <a href="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.
2327

2428
After successfully installing the chrome extension, you can test Reactime functionalities in the demo repositories below.
@@ -67,7 +71,7 @@ You can click on a snapshot to view your app's state. State can be visualized in
6771

6872
### Jumping
6973

70-
Jumping is the most important feature of all. It allows you to jump to any previous recorded snapshots. Hitting the jump button on any snapshot will change the DOM by setting their state. One important 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.
74+
Jumping is the most important feature of all. It allows you to jump to any previous recorded snapshots. Hitting the jump button on any snapshot will change the DOM by setting their state.
7175

7276
### Others
7377

0 commit comments

Comments
 (0)