I'm trying to find a good way to use React with Firebase. There are three main things going on here:
- A router mixin in my root component matches a path to a
Handlercomponent. - the
Handlercomponent specifies the data it requires instatics.firebase. - a
FirebaseMixinhandles subscription/unsubscription to Firebase data.
All of this works on the client and server (express middleware is at the bottom)
Data Dependencies