Guest User

Untitled

a guest
Feb 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. const CardboardBoxColorfulContents = () => (
  2. <Box
  3. render={children => <Cardboard>{children}</Cardboard>}
  4. >
  5. {randomBoxColor => (
  6. <Shoes color={randomBoxColor} />
  7. <Hat color={randomBoxColor} />
  8. )}
  9. </Box>
  10. );
  11. export default CardboardBoxColorfulContents;
  12.  
  13. // `render` prop for replacing the rendering of <Box />
  14. // `children` prop for rendering <Box />'s children
Add Comment
Please, Sign In to add comment