Created
April 15, 2018 13:10
-
-
Save devonestes/0325400c79c63cb0a6233f174d6f43a1 to your computer and use it in GitHub Desktop.
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 Header from './header.jsx'; | |
function headerFun(input) { | |
<h1>{input.name}</h1> | |
} | |
function DesktopHeader(input) { | |
<Header {...{input, headerFun}} /> | |
} |
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
function Header({input, headerFun}) { | |
return ( | |
<div className="header"> | |
{headerFun(input)} | |
</div> | |
) | |
} | |
export default Header; |
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 Header from './header.jsx'; | |
function headerFun(input) { | |
<h6>{input.name}</h6> | |
} | |
function DesktopHeader(input) { | |
<Header {...{input, headerFun}} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment