Skip to content

Instantly share code, notes, and snippets.

@koss-lebedev
Created July 4, 2022 10:32
Show Gist options
  • Save koss-lebedev/9c92799addb177c15a8c2139a7f3660c to your computer and use it in GitHub Desktop.
Save koss-lebedev/9c92799addb177c15a8c2139a7f3660c to your computer and use it in GitHub Desktop.
const Header = ({ children }) => (
<header>
<Logo />
<Actions>
{children}
</Actions>
</header>
)
const HomePage = () => (
<>
<Header>
<Link to="/dashboard">Go to dashboard</Link>
</Header>
<OtherHomeStuff />
</>
)
const DashboardPage = () => (
<>
<Header>
<Link to="/events/new">Create event</Link>
</Header>
<OtherDashboardStuff />
</>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment