Skip to content

Commit 3958dad

Browse files
authored
Update part2c.md
Missing "import ReactDom" and "import App" statements.
1 parent 5e11e3d commit 3958dad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/content/2/en/part2c.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,10 @@ As such, effect hooks are precisely the right tool to use when fetching data fro
372372
Let's remove the fetching of data from <i>index.js</i>. Since we're going to be retrieving the notes from the server, there is no longer a need to pass data as props to the <i>App</i> component. So <i>index.js</i> can be simplified to:
373373

374374
```js
375-
ReactDOM.createRoot(document.getElementById('root')).render(<App />)
375+
import ReactDOM from "react-dom/client";
376+
import App from "./App";
377+
378+
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
376379
```
377380

378381
The <i>App</i> component changes as follows:

0 commit comments

Comments
 (0)