Skip to content

Instantly share code, notes, and snippets.

@loraxx753
Last active July 9, 2018 01:33
Show Gist options
  • Save loraxx753/fd6498d303908f3eed096c904edc489a to your computer and use it in GitHub Desktop.
Save loraxx753/fd6498d303908f3eed096c904edc489a to your computer and use it in GitHub Desktop.
I'm just using .jsx for the styling, pretend it's .js
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
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