Skip to main content
100%

firebase with redeux/react

✓ Published0🌍 Public
CCKschneid
Last edited Jan 29, 2017
Created on Jan 29, 2017

This example shows how Redux acts as an intermediary between React and Firebase, managing live post data through asynchronous actions. It uses the Firebase JavaScript API to connect to a `fbredux` database, with `Posts.on('value')` listening for real-time updates and dispatching `FETCH_POSTS` actions to the Redux store. The code also demonstrates how to create and delete posts via `Firebase.push()` and `Firebase.child().remove()`, respectively, with each operation returning a thunk that receives `dispatch` as an argument. The data source is a Firebase Realtime Database, while the rendering approach relies on React’s unidirectional data flow through Redux state.

AI-generated description

Similar vizzes