Guest User

Untitled

a guest
Aug 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import React from 'react';
  2.  
  3. const foo = 'bar';
  4.  
  5. export default ({ children }) => {
  6. return(
  7. <div>
  8. {children(foo)}
  9. </div>
  10. )};
  11.  
  12. import React from "react"
  13. import Layout from '../components/Layout';
  14.  
  15. export default (props) => {
  16. return (
  17. <Layout>
  18. {foo => (
  19. <div>
  20. {foo}
  21. </div>
  22. )}
  23. </Layout>
  24. )
  25. }
Add Comment
Please, Sign In to add comment