class-to-component is a simple library that takes in a class name and gives you back a react component which renders a container with that class name applied.
;const C = ;// Now you can use C as a component:const Container = <C />// Renders <div className="foo" />
We can also pass multiple class names (which are combined using classcat):
const C = ;
const ListView =;// Later:<ListView useCompactView />