Skip to content

Instantly share code, notes, and snippets.

@marcobiedermann
Created May 24, 2022 08:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcobiedermann/87f078246e2a20a143f1422e5c8845da to your computer and use it in GitHub Desktop.
Save marcobiedermann/87f078246e2a20a143f1422e5c8845da to your computer and use it in GitHub Desktop.
React TypeScript
import React, { ReactNode } from 'react'
interface ProjectProps {
children: ReactNode;
name: string;
}
function Project(props: ProjectProps): JSX.Element {
const { children, name } = props;
return (
<div>
<h1>{name}</h1>
<div>{children}<div>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment