How can I change the reflux listenTo mixin based on a prop in a react.js component
|Added at||2016-04-08 13:04|
Can anyone help with this...
I have this list component and I want to be able to switch different data stores (defined in props)
But I want to do this -
But props don't appear to be available in the mixin. I also tried to transfer it to a function:
Any help appreciated. pretty new ot react but trying to make it as reusable as possible!
EG: I want to include the component like this:
etc - and these would look at these stores.