Fundamentals2 / 5
Up next

Props

type Props = { name: string };

function Greeting({ name }: Props) {
  return <p>Hello, {name}!</p>;
}
What you're solving

typed props via destructuring