Skip to content

Instantly share code, notes, and snippets.

@nehalist
Created January 12, 2020 18:37
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 nehalist/78c4e5ec6509b2ba0b4c8360c5ed59b2 to your computer and use it in GitHub Desktop.
Save nehalist/78c4e5ec6509b2ba0b4c8360c5ed59b2 to your computer and use it in GitHub Desktop.
const Child: FunctionComponent<{ someprop: number }> = () => {
return <>child</>
};
const Foo: FunctionComponent<{ fooprop: boolean }> = (props) => (
<Child {...props} />
);
// IDE properly complains since `someprop` is missing in props of Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment