Created
February 4, 2025 12:25
-
-
Save nataliaconde/59dcf4fba9e8ad49ad86e8ca2c14516a to your computer and use it in GitHub Desktop.
This file contains 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
/*Journal.tsx*/ | |
const [journal, setJournal] = React.useState([]); | |
const fetchJournal = async () => { | |
try { | |
const query = new Parse.Query("Journal"); | |
const results = await query.find(); | |
setJournal(results); | |
} catch (error) { | |
console.log(error); | |
} | |
}; | |
React.useEffect(() => { | |
fetchJournal(); | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment