Skip to content

Instantly share code, notes, and snippets.

@briangershon
Created January 31, 2021 23:26
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 briangershon/cfa5c1ba0e8938eaf85c7ea9a7945c37 to your computer and use it in GitHub Desktop.
Save briangershon/cfa5c1ba0e8938eaf85c7ea9a7945c37 to your computer and use it in GitHub Desktop.
TypeScript interface for React click event
interface Props {
clickOnSuccess: (
event: React.MouseEvent<HTMLButtonElement>,
url: string
) => void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment