Fix typo, closes #5505

This commit is contained in:
Dan Abramov
2023-01-31 22:25:52 +00:00
parent 720b37f7da
commit 0300f8a728

View File

@@ -64,7 +64,7 @@ React will attach to the HTML that exists inside the `domNode`, and take over ma
Call `hydrate` to attach a <CodeStep step={1}>React component</CodeStep> into a server-rendered <CodeStep step={2}>browser DOM node</CodeStep>.
```js [[1, 3, "document.getElementById('root')"], [2, 3, "<App />"]]
```js [[1, 3, "<App />"], [2, 3, "document.getElementById('root')"]]
import {hydrate} from 'react-dom';
hydrate(<App />, document.getElementById('root'));