Skip to content

Commit 3b40af0

Browse files
author
Peng Jie
committed
chore: add import css style instruction
1 parent f6ea57d commit 3b40af0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ const defaultOptions = {
5050

5151
You can custom options for you want, just pass `options` as props. The configuration you can reference [here](https://github.com/rtfpessoa/diff2html#configuration). :mag_right:
5252

53+
## Style
54+
55+
Import css style make sure render correctly:
56+
57+
```js
58+
import 'react-gh-like-diff/dist/css/diff2html.min.css';
59+
```
60+
61+
You also can reference [examples](https://github.com/neighborhood999/react-gh-like-diff/blob/master/example/compare-markdown/src/App.js).
62+
5363
## Props
5464

5565
### past

example/compare-markdown/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReactGhLikeDiff } from 'react-gh-like-diff';
33
import fetch from 'unfetch';
44
import { TITLE, PAST, CURRENT } from './constants';
55
import './App.css';
6-
import 'react-gh-like-diff/lib/diff2html.min.css';
6+
import 'react-gh-like-diff/dist/css/diff2html.min.css';
77

88
class App extends Component {
99
state = {

0 commit comments

Comments
 (0)