The problem
How many times you wrap one component by another? Use the React's HOC paradigm?
const MySuperComponentWrapper = <AmazingStuff><WrappedComponent ...props /></AmazingStuff>
That about propTypes? types?
The Solution
; const MySuperComponentWrapper = ;
But why?
Are you mad mate? I need only one line to solve this problem! I have written
const MySuperComponentWrapper = <AmazingStuff><WrappedComponent ...props /></AmazingStuff>MySuperComponentWrapperpropTypes = WrappedComponentpropTypes;
But
- what about Flow/TS types?
Huh?
Licence
MIT