Created
April 30, 2021 08:28
-
-
Save kjmczk/bb960e2814639690dc112a3f08aa61fb to your computer and use it in GitHub Desktop.
components/Tips.tsx - MDX Blog Simple - Medium
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
// components/Tips.tsx | |
type Props = { | |
tips: string[]; | |
}; | |
const Tips: React.FC<Props> = ({ tips }: Props) => { | |
return ( | |
<> | |
<h2>Tips</h2> | |
<ul> | |
{tips.map((tip, index) => ( | |
<li key={index}>{tip}</li> | |
))} | |
</ul> | |
</> | |
); | |
}; | |
export default Tips; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment