continue lesson
This commit is contained in:
parent
f1916e5c56
commit
f1b67a4346
2 changed files with 15 additions and 8 deletions
|
|
@ -3,9 +3,4 @@ import App from "./App";
|
|||
|
||||
import axios from "axios";
|
||||
|
||||
axios.get("http://localhost:3001/notes").then((response) => {
|
||||
const notes = response.data;
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||
<App startingNotes={notes} />
|
||||
);
|
||||
});
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue