Redux firebase makes the connection between your firebase backend and your redux store, using a schema.
npm install --save redux-firebase@https://github.com/gobadiah/redux-firebase
First define your schemas in schemas.js
like so :
import { Schema } from 'redux-firebase';
const drivers = new Schema('drivers');
const cars = new Schema('cars');
drivers.hasMany(cars, 'private_cars', 'owner');
export default {
drivers,
cars
};
Then you need to use :
- Redux-firebase middleware and reducer :
import { create
- Test