Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- const foo = 'bar';
- export default ({ children }) => {
- return(
- <div>
- {children(foo)}
- </div>
- )};
- import React from "react"
- import Layout from '../components/Layout';
- export default (props) => {
- return (
- <Layout>
- {foo => (
- <div>
- {foo}
- </div>
- )}
- </Layout>
- )
- }
Add Comment
Please, Sign In to add comment