Last active
August 8, 2021 19:47
-
-
Save Ebazhanov/b9cb9035f1365eb3a466545946306ee1 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
// define a Navigation Link type for our links | |
export type NavLinkPropType = { | |
label: string; | |
route: string; | |
}; | |
const AppHeaderNavLink: React.FC<NavLinkPropType> = ({ label }) => { | |
return <span className="nav-link">{label}</span>; | |
}; | |
export default AppHeaderNavLink; | |
/** | |
* an other one | |
**/ | |
// define a Navigation Link type for our links | |
export type NavLinkPropType = { | |
label: string; | |
route: string; | |
}; | |
const AppHeaderNavLink = ({ label }: NavLinkPropType) => { | |
return <span className="nav-link">{label}</span>; | |
}; | |
export default AppHeaderNavLink; | |
///https://www.newline.co/@bespoyasov/how-to-define-props-in-react-typescript-app--6eb90f50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment