Skip to content

Commit 4a0fc7e

Browse files
docs(readme): tidy sentence and code blocks under usage
1 parent ca29aa6 commit 4a0fc7e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $ yarn add html-react-parser
5454

5555
## Usage
5656

57-
Given you have `html-react-parser` imported:
57+
Given `html-react-parser` is imported:
5858

5959
```js
6060
// ES Modules
@@ -89,13 +89,15 @@ class App extends Component {
8989
Parse nested elements:
9090

9191
```js
92-
parse('<ul><li>text</li></ul>');
92+
parse('<ul><li>item</li></ul>');
9393
```
9494

9595
Parse element with attributes:
9696

9797
```js
98-
parse('<hr id="foo" class="bar" data-baz="qux">');
98+
parse(
99+
'<hr id="foo" class="bar" data-attr="baz" custom="qux" style="top:42px;">'
100+
);
99101
```
100102

101103
### Options

0 commit comments

Comments
 (0)