Skip to content

Instantly share code, notes, and snippets.

@fivepixels
Created June 14, 2023 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fivepixels/b3032d7423341ca1ebfc038f63eaa9de to your computer and use it in GitHub Desktop.
Save fivepixels/b3032d7423341ca1ebfc038f63eaa9de to your computer and use it in GitHub Desktop.
The React Component Format
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