I am browsing the reactfire github and they use mixins.
I thought they were deprecated? Am I behind the times?
I am browsing the reactfire github and they use mixins.
I thought they were deprecated? Am I behind the times?
You might want to take a look to this brief answer: https://www.quora.com/Is-it-possible-to-use-Firebase-with-ES6-on-React
The problem with ReactFire is because it uses Mixins, it's not compatible with ES6 classes. After chatting with Jacob Turner, we wanted to create a way to allow the one way binding of ReactFire with ES6 classes along some more features like two way data binding and listening to Firebase endpoints without actually binding a state property to them. Thus, re-base was built.
So, here's a Relay inspired library for building React.js + Firebase applications: https://github.com/tylermcginnis/re-base
This was helpful to me, I hope it'll be the same with you.
Apart from re-base, also have a look at react-redux-firebase as mentioned in this reactfire discussion:
Redux bindings for Firebase. Includes Higher Order Component for use with React.