How to get data in Cloud Firestore with React | Part 8 ReactJS Tutorial Series with Full App

Опубликовано: 25 Апрель 2021
на канале: Carmelle Codes
18,811
251

Let's continue what we built in Part 7 by fetching our survey data from the Cloud Firestore database. We will get the data with the useEffect React hook. After that, we'll use Firebase Firestore's library functions, specifically onSnapshot(), to store data in a local variable. After storing that variable to the component's state with the useState() hook, we can map over the results and display them one by one.

Level: Intermediate / Advanced

Part 7:    • How to store form data in Cloud Fires...  

GitHub Repo Link: https://github.com/carmellemillar/car...