Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import Header from './header.jsx';
function headerFun(input) {
<h1>{input.name}</h1>
}
function DesktopHeader(input) {
<Header {...{input, headerFun}} />
}
function Header({input, headerFun}) {
return (
<div className="header">
{headerFun(input)}
</div>
)
}
export default Header;
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