As stated in React docs when creating a HOC, you need to copy over the static methods,
Some of my components declare static properties, but they are undefined when using withI18n
This fix is simple, the only addition is to call hoistNonReactStatic over the hoisted and original component
As stated in React docs when creating a HOC, you need to copy over the static methods,
Some of my components declare static properties, but they are undefined when using
withI18nThis fix is simple, the only addition is to call
hoistNonReactStaticover the hoisted and original component