there are bindings for react and firebase without redux.
however there are no bindings for react and firestore without redux.
this is the best i’ve found: https://github.com/prescottprue/redux-firestore
So adopting needs to be tested to understand where redux goes in.
instructions
- set up a Create React App
yarn add redux react-redux firebase redux-firestore react-redux-firebase@next
- add
firebase.js
in src as per their readme - add
firebaseConfig
from firebase console - copy in the component class from their readme
- add it into App.js
- npm start
this turned out not to work very well. i have to try the simple https://github.com/unfold/react-firebase/issues/50 version
i managed to adapt react-firebase for firestore successfully. not the neatest code but it works. i also sent it in as a PR https://github.com/unfold/react-firebase/issues/50 but dont think it will get accepted. still dont know how to make my prettier work with eslint.
time to look at auth rules.