Created
December 17, 2019 10:57
-
-
Save indreklasn/203653266bd40cc3fe369af25d79721c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import './App.css'; | |
import { getAllNotes, deleteNote, editNote } from './api' | |
function App( ) { | |
const [notes, setNotes] = useState([]) | |
useEffect(() => { | |
getAllNotes.then(res => setNotes(res)) | |
}, []) | |
return ( | |
<div className="App"> | |
<ToastContainer /> | |
<header className="App-container"> | |
<div className="notes-container"> | |
</div> | |
</header> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment