Firebase Database CRUD Operations in React Webpack
https://grokonez.com/frontend/react/how-to-react-firebase-database-crud-operations-in-react-webpack
Firebase Realtime Database is a cloud-hosted database that helps us to store and sync data with NoSQL cloud database in realtime to every connected client. In this tutorial, we’re gonna integrate Firebase into React Webpack, then we will look at way to make CRUD operations with Firebase Realtime Database.
More Practice:
- React Redux – Firebase CRUD Operations example
- React Redux Firebase Authentication – Google Account Sign in/Sign out example
Firebase Realtime Database
How data is structured
All Firebase Realtime Database data is stored as JSON objects without tables or records. When adding data, it becomes a node in JSON structure. For each node, we can:
– provide our own key (IDs/semantic names) and use set()
method, or
– let it do automatically using push()
method.
{
"users": {
"one": {
"name": "JavaSampleApproach",
"email": "contact@grokonez.com",
},
"two": {
"name": "Kotlination",
"email": "contact@kotlination.com",
}
}
"message": {
"author": "JavaSampleApproach",
"body": "WOW! Java Technology, Spring Framework!"
}
"books": {
"-LAvoKJK67rpjhhLIdJF": {
"title": "Origin",
"author": "Dan Brown",
"published": "2017",
},
"-LAvoQIdcd-HbocEU_LO": {
"title": "Harry Potter and the Goblet of Fire",
"author": "J. K. Rowling",
"published": "2000",
}
}
}
https://grokonez.com/frontend/react/how-to-react-firebase-database-crud-operations-in-react-webpack
Top comments (0)