1const StyleInjector = ({ children }) => {
2 const StyledChildren = () =>
3 React.Children.map(children, child =>
4 React.cloneElement(child, {
5 className: `${child.props.className} ${PUT_YOUR_CLASS_HERE}`
6 })
7 );
8
9 return <StyledChildren />;
10};
11