Skip to content

Commit b2beb8d

Browse files
Merge pull request #106 from remarkablemark/build/react-dom-core
build(package): update [email protected]
2 parents eb3085a + 4a0fc7e commit b2beb8d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

+5-3
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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dependencies": {
3737
"@types/domhandler": "2.4.1",
3838
"html-dom-parser": "0.2.1",
39-
"react-dom-core": "0.0.4",
39+
"react-dom-core": "0.1.1",
4040
"style-to-object": "0.2.2"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
 (0)