Skip to content

Instantly share code, notes, and snippets.

@JoSuzuki
Created September 16, 2021 16:58
Show Gist options
  • Save JoSuzuki/67638d265bfd9f5a20ef4198925bd4cd to your computer and use it in GitHub Desktop.
Save JoSuzuki/67638d265bfd9f5a20ef4198925bd4cd to your computer and use it in GitHub Desktop.
[Dont add, subtract] Navbar example subtracting
const MyApp = () => {
return (
<div>
<Navbar>
<Link href="/home">Home</Link>
<Link href="/products">Products</Link>
<Button onClick={openSupport}>Support</Button>
<Link href="/about">About</Link>
</Navbar>
<Main />
</div>
);
};
const Navbar = ({ children }) => {
return <NavbarStyled>{children}</NavbarStyled>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment