diff --git a/src/content/reference/react-dom/unmountComponentAtNode.md b/src/content/reference/react-dom/unmountComponentAtNode.md index 008943bd..e538ceb3 100644 --- a/src/content/reference/react-dom/unmountComponentAtNode.md +++ b/src/content/reference/react-dom/unmountComponentAtNode.md @@ -56,7 +56,7 @@ unmountComponentAtNode(domNode); Call `unmountComponentAtNode` to remove a mounted React component from a browser DOM node and clean up its event handlers and state. ```js [[1, 5, ""], [2, 5, "rootNode"], [2, 8, "rootNode"]] -import {render, unmountComponentAtNode} from 'react-dom'; +import { render, unmountComponentAtNode } from 'react-dom'; import App from './App.js'; const rootNode = document.getElementById('root'); @@ -90,7 +90,7 @@ In this example, clicking "Render React App" will render a React app. Click "Unm ```js index.js active import './styles.css'; -import {render, unmountComponentAtNode} from 'react-dom'; +import { render, unmountComponentAtNode } from 'react-dom'; import App from './App.js'; const domNode = document.getElementById('root');