Created
July 22, 2016 09:05
-
-
Save ghengeveld/275cdf87407024db5a8a5820b140b86e to your computer and use it in GitHub Desktop.
Implicitly passing props
This file contains 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
function App(props) { | |
return <Header title="Fancy" />; | |
} | |
function Header(props) { | |
return <Title {...props} />; | |
} | |
function Title(props) { | |
return <div>{props.title}</div>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment