mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
[Beta] Add missing imports to ref pages (#5442)
* [Beta] Add missing imports to ref pages * Fix spaces
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user