Last active
July 9, 2018 01:33
-
-
Save loraxx753/fd6498d303908f3eed096c904edc489a to your computer and use it in GitHub Desktop.
I'm just using .jsx for the styling, pretend it's .js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import CoolShiz from './CoolShiz' | |
class App extends React.Component { | |
render() { | |
return <CoolShiz>{() => 'This is just returned as a string.'}</CoolShiz> | |
} | |
} | |
export default App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
export default props => props.children() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment