Skip to content

Commit d72dc8e

Browse files
committed
add readme
1 parent 2a41278 commit d72dc8e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# react-diff
2+
3+
Highlights differences between two strings, uses the [diff](https://www.npmjs.com/package/diff) module
4+
5+
## Installation
6+
7+
```
8+
npm install react-diff
9+
```
10+
11+
## Demo
12+
13+
http://cezary.github.io/react-diff/example/
14+
15+
## Example
16+
17+
```javascript
18+
var React = require('react');
19+
var Diff = require('react-diff');
20+
21+
var Component = React.createClass({
22+
render: function() {
23+
return (
24+
<Diff inputA="gogol" inputB="google" type="words" />
25+
);
26+
}
27+
});
28+
```
29+
30+
## License
31+
32+
MIT

0 commit comments

Comments
 (0)