Skip to content

Commit

Permalink
Merge pull request #106 from remarkablemark/build/react-dom-core
Browse files Browse the repository at this point in the history
build(package): update [email protected]
  • Loading branch information
remarkablemark authored May 27, 2019
2 parents eb3085a + 4a0fc7e commit b2beb8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $ yarn add html-react-parser

## Usage

Given you have `html-react-parser` imported:
Given `html-react-parser` is imported:

```js
// ES Modules
Expand Down Expand Up @@ -89,13 +89,15 @@ class App extends Component {
Parse nested elements:

```js
parse('<ul><li>text</li></ul>');
parse('<ul><li>item</li></ul>');
```

Parse element with attributes:

```js
parse('<hr id="foo" class="bar" data-baz="qux">');
parse(
'<hr id="foo" class="bar" data-attr="baz" custom="qux" style="top:42px;">'
);
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@types/domhandler": "2.4.1",
"html-dom-parser": "0.2.1",
"react-dom-core": "0.0.4",
"react-dom-core": "0.1.1",
"style-to-object": "0.2.2"
},
"devDependencies": {
Expand Down

0 comments on commit b2beb8d

Please sign in to comment.