Skip to content

Instantly share code, notes, and snippets.

@kvedantmahajan
Created November 17, 2019 15:36
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 kvedantmahajan/25dc65fa16f53b755121e3c77e6e3b92 to your computer and use it in GitHub Desktop.
Save kvedantmahajan/25dc65fa16f53b755121e3c77e6e3b92 to your computer and use it in GitHub Desktop.
import React from "react";
const Button = () => {
const handleChange = (e: React.MouseEvent<HTMLButtonElement>) => {
console.log(e);
}
return (
<button onClick={handleChange}>
Sample Button
</button>
)
}
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment