Skip to content

Instantly share code, notes, and snippets.

@ozantunca
Created August 1, 2020 14:39
Show Gist options
  • Save ozantunca/4820fa9dc7dce6ddab61a87ca2d28dcc to your computer and use it in GitHub Desktop.
Save ozantunca/4820fa9dc7dce6ddab61a87ca2d28dcc to your computer and use it in GitHub Desktop.
interface WelcomeProps {
name: string;
children: React.ReactNode;
}
function Welcome(props: WelcomeProps) {
return <h1>Hello, {props.name}</h1>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment