Skip to content

Commit d818391

Browse files
authored
docs: add-missing-space-in-unmount-component-at-node (#5875)
1 parent 052126d commit d818391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react-dom/unmountComponentAtNode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ unmountComponentAtNode(domNode);
5656
Call `unmountComponentAtNode` to remove a <CodeStep step={1}>mounted React component</CodeStep> from a <CodeStep step={2}>browser DOM node</CodeStep> and clean up its event handlers and state.
5757

5858
```js [[1, 5, "<App />"], [2, 5, "rootNode"], [2, 8, "rootNode"]]
59-
import {render, unmountComponentAtNode} from 'react-dom';
59+
import { render, unmountComponentAtNode } from 'react-dom';
6060
import App from './App.js';
6161

6262
const rootNode = document.getElementById('root');
@@ -90,7 +90,7 @@ In this example, clicking "Render React App" will render a React app. Click "Unm
9090

9191
```js index.js active
9292
import './styles.css';
93-
import {render, unmountComponentAtNode} from 'react-dom';
93+
import { render, unmountComponentAtNode } from 'react-dom';
9494
import App from './App.js';
9595
9696
const domNode = document.getElementById('root');

0 commit comments

Comments
 (0)