Created
March 8, 2024 20:15
-
-
Save hbjydev/79e74aa81e701e3bc928b6d83720b46d to your computer and use it in GitHub Desktop.
This file contains 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
export const Base = ({ children }) => ( | |
<div className="something"> | |
This is my base | |
<NavLinks /> | |
{children} | |
<Footer /> | |
</div> | |
); |
This file contains 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 { Base } from './base'; | |
export const IndexRoute = () => { | |
return ( | |
<Base> | |
This content is inside Base, but only on index.tsx | |
</Base> | |
); | |
} |
This file contains 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 { Base } from './base'; | |
export const SettingsRoute = () => { | |
return ( | |
<Base> | |
This content is inside Base, but only on settings.tsx | |
</Base> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment