This has the benefit of the component effectively serving as the render method of your ThemeComponent which has various benefits (one of which being performance).
We use this for all glamorous components via an option: withTheme(Comp, {createElement: false}) (createElement defaults to true).
This is what we do in glamorous.
This has the benefit of the component effectively serving as the render method of your ThemeComponent which has various benefits (one of which being performance).
We use this for all glamorous components via an option:
withTheme(Comp, {createElement: false})
(createElement
defaults totrue
).