Skip to content

Dynamic app layout with wrapped component in HOC #11337

Answered by aaronjensen
overide asked this question in Help
Discussion options

You must be logged in to vote

It's the responsibility of HOCs to hoist statics of the wrapped component. If they do not, they are not proper HOCs and this is not expected to work.

See: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@overide
Comment options

Answer selected by overide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants