I've added two new HOCs. They are handy for integration with third party stuff.
withTheme(Component)
A HOC that passes the current theme from context into the prop theme. This is useful
when you need to access the theme without using createComponent. In other words,
you can't create a new styled component with it.
A HOC that passes the renderer from context into the prop renderer. This is useful
for third party integration when you need to generate a class name and you can't create
a new styled component with it.
I've added two new HOCs. They are handy for integration with third party stuff.
withTheme(Component)
A HOC that passes the current theme from context into the prop
theme
. This is useful when you need to access the theme without usingcreateComponent
. In other words, you can't create a new styled component with it.withRenderer(Component)
A HOC that passes the renderer from context into the prop
renderer
. This is useful for third party integration when you need to generate a class name and you can't create a new styled component with it.