Skip to content

Instantly share code, notes, and snippets.

@ghengeveld
Created July 22, 2016 09:05
Show Gist options
  • Save ghengeveld/275cdf87407024db5a8a5820b140b86e to your computer and use it in GitHub Desktop.
Save ghengeveld/275cdf87407024db5a8a5820b140b86e to your computer and use it in GitHub Desktop.
Implicitly passing props
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