How can I add styles to all the children of an element

Viewed 3093

For example how could I implement the addStyles function in this snippet

const addStyles = // ...
const Element = ({ children }) => (
    <div>{children.map(addStyles)}</div>
);

thanks

1 Answers
Related