enpit / fleux

Towards Sane State Management in React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Components created by the HOC do not contain the original component's static properties

janis-kra opened this issue · comments

This is particularly annoying for users of react-navigation, where the header is configured via static properties.

One workaround is to split the component in question into two: Component A that just defines the header, and another component B that handles state via fleux and is rendered via component A's render function