Created
June 14, 2023 15:52
-
-
Save fivepixels/b3032d7423341ca1ebfc038f63eaa9de to your computer and use it in GitHub Desktop.
The React Component Format
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
interface IComponentProps { | |
name: string; | |
id: number; | |
} | |
const Component = ({name, id}: IComponentProps) => { | |
return ( | |
<div> | |
<span>Hello World!</span> | |
<p>Nice to meet you, {name}.</p> | |
</div> | |
) | |
} | |
export default Component; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment