Hi,
I have been trying to store a react component inside a reducer for a project I am working on. I want to know if it is ok to do so and how would I approach it.
I tried to do it, but it loses some functionality inside the reducer.
A react component would look something like this:
{ function:
{ [Function: Connect]
displayName: 'Connect(Counter)',
WrappedComponent: { [Function: Counter] propTypes: [Object] },
contextTypes: { store: [Object] },
propTypes: { store: [Object] } } }
However, after I store it inside a reducer, it loses its properties and ends looking something like this:
{ function:
{ [Function: Connect] } }