U r s u s
U r s u s

Reputation: 6978

React-redux with re-base-firebase. Good idea?

I'm building a small Firebase app with React as the view. I have been working with Redux a lot recently, so I thought I'd use it here too.

BUT, it seems that Flux architecture and Firebase are at odds and libraries like re-base are based on trying to avoid those conflicts, which I understand.

However it's unclear to me, given that Flux and Redux are fairly different, what is the simplest option:

  1. use Redux-react and Firebase
  2. use Redux-react and re-base
  3. forget REdux; just use React and re-base
  4. use React and Firebase

Anyone with experience in this that can advise?

Upvotes: 2

Views: 1305

Answers (2)

Scott
Scott

Reputation: 1615

If you are interested in an ES6 compatible react-redux library, there is react-redux-firebase. There is a short medium article I mention in the FAQ about why linking Firebase state and redux state is nice, but it seems like that is what you are already trying to do.

My experience with react, redux, and Firebase has lead me to decide that combining the state does have its merits. This becomes especially true when dealing with auth and user profiles.

Disclosure:

I am the author of react-redux-firebase (the library mentioned above) and the medium article mentioned.

Upvotes: 1

Dominic Tracey
Dominic Tracey

Reputation: 767

I'm wondering about this myself. There are some examples of react-redux and Firebase: Functioning demo

But there is also ReactFire referenced from the Firebase documentation as the "official" framework integration.

Upvotes: 4

Related Questions