Skip to content

Commit efb66dc

Browse files
committed
Update README.md
1 parent 702d68d commit efb66dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ A simple and beautiful text diff viewer component made with [Diff](https://githu
1111

1212
Inspired from Github diff viewer, it includes features like split view, inline view, word diff, line highlight and more. It is highly customizable and it supports almost all languages.
1313

14+
Check [here](https://github.com/praneshr/react-diff-viewer/tree/v2.0) for v2.0
15+
1416
## Install
1517

1618
```bash
17-
yarn add react-diff-viewer@beta
19+
yarn add react-diff-viewer
1820

1921
# or
2022

21-
npm i react-diff-viewer@beta
23+
npm i react-diff-viewer
2224
```
2325

2426
## Usage
@@ -64,7 +66,7 @@ class Diff extends PureComponent {
6466
| newValue | `string` | `''` | New value as string. |
6567
| splitView | `boolean` | `true` | Switch between `unified` and `split` view. |
6668
| disableWordDiff | `boolean` | `false` | Show and hide word diff in a diff line. |
67-
| compareMethod | `DiffMethod` | `DiffMethod.CHARS` | JsDiff text diff method used for diffing strings. Check out the [guide](https://github.com/praneshr/react-diff-viewer/tree/v3.0.0#text-block-diff-comparison) to use different methods. |
69+
| compareMethod | `DiffMethod` | `DiffMethod.CHARS` | JsDiff text diff method used for diffing strings. Check out the [guide](https://github.com/praneshr/react-diff-viewer/tree/v3.0.0#text-block-diff-comparison) to use different methods. |
6870
| hideLineNumbers | `boolean` | `false` | Show and hide line numbers. |
6971
| renderContent | `function` | `undefined` | Render Prop API to render code in the diff viewer. Helpful for [syntax highlighting](#syntax-highlighting) |
7072
| onLineNumberClick | `function` | `undefined` | Event handler for line number click. `(lineId: string) => void` |
@@ -77,7 +79,6 @@ class Diff extends PureComponent {
7779
| leftTitle | `string` | `undefined` | Column title for left section of the diff in split view. This will be used as the only title in inline view. |
7880
| rightTitle | `string` | `undefined` | Column title for right section of the diff in split view. This will be ignored in inline view. |
7981

80-
8182
## Instance Methods
8283

8384
`resetCodeBlocks()` - Resets the expanded code blocks to it's initial state. Return `true` on successful reset and `false` during unsuccessful reset.

0 commit comments

Comments
 (0)