Skip to content

Commit c613efd

Browse files
committed
Update docs for ESM
1 parent 28d4c75 commit c613efd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.md

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Markdown component for React using [**remark**][remark].
1414

1515
## Install
1616

17+
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c):
18+
Node 12+ is needed to use it and it must be `import`ed instead of `require`d.
19+
1720
[npm][]:
1821

1922
```sh
@@ -84,6 +87,9 @@ ReactDom.render(
8487

8588
## API
8689

90+
This package exports the following identifier: `uriTransformer`.
91+
The default export is `ReactMarkdown`.
92+
8793
### `props`
8894

8995
* `children` (`string`, default: `''`)\

0 commit comments

Comments
 (0)