Skip to content

Commit bc0c354

Browse files
docs(readme): tidy import code block
Signed-off-by: Mark <remarkablemark@users.noreply.github.com>
1 parent fae3397 commit bc0c354

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
@@ -97,13 +97,15 @@ yarn add html-react-parser
9797

9898
## Usage
9999

100-
Import or require the module:
100+
Import ES module:
101101

102102
```js
103-
// ES Modules
104103
import parse from 'html-react-parser';
104+
```
105+
106+
Or require CommonJS module:
105107

106-
// CommonJS
108+
```js
107109
const parse = require('html-react-parser');
108110
```
109111

0 commit comments

Comments
 (0)