react-to-do-list | A react to-do list web app | Frontend Framework library
kandi X-RAY | react-to-do-list Summary
kandi X-RAY | react-to-do-list Summary
A react to-do list web app
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-to-do-list
react-to-do-list Key Features
react-to-do-list Examples and Code Snippets
Community Discussions
Trending Discussions on react-to-do-list
QUESTION
I am making a todo-list app using React. I'm able to save data into firebase database. However, I don't know how to retrieve those data and put them in JSX. I can print them in the console. Currently, I only output the todo lists by typing in the bar and press enter.
Here is my code. It's kinda messy.
...ANSWER
Answered 2019-Mar-15 at 11:44As firebase database is a real time DB, which means it gives you a reference to where data is and can trigger you whenever the data at the reference changes, this allows you to capture snapshots of data at the given reference.
You are almost correct to use firebase.database().ref().on('value')
method to get the data at the reference.
You can further add a callback like the this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-to-do-list
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page