diff --git a/app/frontend/src/App.js b/app/frontend/src/App.js index 3784575..1785e1a 100644 --- a/app/frontend/src/App.js +++ b/app/frontend/src/App.js @@ -1,25 +1,27 @@ -import logo from './logo.svg'; +// frontend/src/App.js +import { useState, useEffect } from 'react'; +import Form from 'react-bootstrap/Form'; import './App.css'; - + function App() { + const [todoItems, setTodoItems] = useState([]); + + useEffect(() => { + fetch('http://localhost:3010/api/todo-items') + .then((res) => res.json()) + .then((result) => setTodoItems(result.data)); + }, []); + return ( -
- Edit src/App.js and save to reload.
-