Skip to content

Commit 06e2739

Browse files
authored
Merge pull request #102 from oslabs-beta/rydang-patch-1
replaced package readme
2 parents f4c0405 + 4bfa8c4 commit 06e2739

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

package/readme.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# Reactime
22

3-
![GitHub](https://img.shields.io/github/license/oslabs-beta/reactime)
4-
![Travis (.com) branch](https://img.shields.io/travis/com/oslabs-beta/reactime/dev?label=dev%20build)
5-
![Travis (.com) branch](https://img.shields.io/travis/com/oslabs-beta/reactime/master?label=master%20build)
6-
![npm](https://img.shields.io/npm/v/reactime?color=green)
7-
![David](https://img.shields.io/david/oslabs-beta/reactime)
8-
![DevDependencies](https://img.shields.io/david/dev/oslabs-beta/reactime.svg)
9-
![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/oslabs-beta/reactime)
3+
[![GitHub](https://img.shields.io/github/license/oslabs-beta/reactime)](https://github.com/oslabs-beta/reactime)
4+
[![Build Status](https://secure.travis-ci.org/oslabs-beta/reactime.svg?branch=master)](https://travis-ci.com/oslabs-beta/reactime)
5+
[![npm version](https://badge.fury.io/js/reactime.svg)](http://badge.fury.io/js/reactime)
6+
[![Dependencies](https://david-dm.org/oslabs-beta/reactime.svg)](https://david-dm.org/oslabs-beta/reactime#info=dependencies)
7+
[![DevDependencies](https://david-dm.org/oslabs-beta/reactime/dev-status.svg)](https://david-dm.org/oslabs-beta/reactime?type=dev)
8+
[![Vulnerabilities](https://snyk.io/test/github/oslabs-beta/reactime/badge.svg)](https://snyk.io/test/github/oslabs-beta/reactime)
9+
10+
[![NPM](https://nodei.co/npm/reactime.png)](https://nodei.co/npm/reactime/)
1011

1112
<p align="center">
12-
<img src="demo.gif" alt="Demo of Reactime">
13+
<img src="demo2.gif" alt="Demo of Reactime" style="width: 55%">
1314
</p>
1415

1516
A debugging tool for React. Records state whenever state is changed and allows user to jump to any previous recorded state.
1617

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.
18+
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.
19+
20+
After successfully installing the chrome extension, you can test Reactime functionalities in the demo repositories below.
21+
22+
- <a href="http://reactime-demo1.us-east-1.elasticbeanstalk.com/">Calculator</a>
23+
- <a href="http://reactime-demo2.us-east-1.elasticbeanstalk.com/"> Bitcoin Price Index</a>
1824

1925
## Installing
2026

@@ -29,12 +35,12 @@ npm i reactime
2935
3. Call the library method on your root container after rendering your App.
3036

3137
```
32-
const reactTimeTravel = require('reactime');
38+
const reactime = require('reactime');
3339
3440
const rootContainer = document.getElementById('root');
3541
ReactDom.render(<App />, rootContainer);
3642
37-
reactTimeTravel(rootContainer);
43+
reactime(rootContainer);
3844
```
3945

4046
4. Done! That's all you have to do to link your React project to our library.
@@ -43,7 +49,7 @@ reactTimeTravel(rootContainer);
4349

4450
After installing both the Chrome extension and the npm package, just open up your project in the browser.
4551

46-
Then open up your Chrome DevTools. There'll be a new tab called reactime.
52+
Then open up your Chrome DevTools. There'll be a new tab called Reactime.
4753

4854
## Features
4955

@@ -53,13 +59,11 @@ Whenever state is changed (whenever setState is called), this extension will cre
5359

5460
### Viewing
5561

56-
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree.
57-
58-
The selected snapshot can also be diffed/compared with the current dom.
62+
You can click on a snapshot to view your app's state. State can be visualized in a JSON or a tree. Also, snapshots can be diffed with the previous snapshot, which can be viewed under the Diff tab.
5963

6064
### Jumping
6165

62-
The most important feature of all. Jumping to any previous recorded snapshot. Hitting the jump button on any snapshot will change the dom by setting their state. One important thing to note. 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.
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.
6367

6468
### Others
6569

@@ -70,7 +74,7 @@ Other handy features include:
7074
- a play button to move through snapshots automatically
7175
- a pause which button stops recording each snapshot
7276
- 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
77+
- a persist button to keep snapshots upon refresh (handy when changing code and debugging)
7478
- export/import the current snapshots in memory
7579

7680
## Authors

0 commit comments

Comments
 (0)