@@ -295,17 +310,18 @@ is used to support math in markdown, and a transform plugin
```jsx
import React from 'react'
-import {render} from 'react-dom'
+import ReactDom from 'react-dom'
import ReactMarkdown from 'react-markdown'
import remarkMath from 'remark-math'
import rehypeKatex from 'rehype-katex'
+
import 'katex/dist/katex.min.css' // `rehype-katex` does not import the CSS for you
-render(
+ReactDom.render(
,
document.body
)
@@ -374,9 +390,9 @@ can spare the bundle size (±60kb minzipped), then you can use
```jsx
import React from 'react'
+import ReactDom from 'react-dom'
import ReactMarkdown from 'react-markdown'
import rehypeRaw from 'rehype-raw'
-import {render} from 'react-dom'
const input = `
@@ -384,7 +400,10 @@ Some *emphasis* and strong!
`
-render(, document.body)
+ReactDom.render(
+ ,
+ document.body
+)
```
@@ -408,7 +427,7 @@ markdown!
You can also change the things that come from markdown:
```js
-