[Beta] Add missing imports to ref pages (#5442)

* [Beta] Add missing imports to ref pages

* Fix spaces
This commit is contained in:
dan
2023-01-06 18:38:09 +00:00
committed by GitHub
parent 44390cd930
commit 05bf01d0ae
24 changed files with 72 additions and 15 deletions

View File

@@ -31,6 +31,8 @@ unmountComponentAtNode(domNode)
Call `unmountComponentAtNode` to remove a mounted React component from the DOM and clean up its event handlers and state.
```js
import { unmountComponentAtNode } from 'react-dom';
const domNode = document.getElementById('root');
render(<App />, domNode);