Skip to content

Instantly share code, notes, and snippets.

@JaysonChiang
Last active February 27, 2021 03:15
Show Gist options
  • Save JaysonChiang/250482e3ea7cfa1bb4d386f48a1aec0e to your computer and use it in GitHub Desktop.
Save JaysonChiang/250482e3ea7cfa1bb4d386f48a1aec0e to your computer and use it in GitHub Desktop.
const EventComponent = () => {
const onChange = (event) => {
console.log(event);
};
return (
<div>
<input onChange={onChange} />
</div>
);
};
export default EventComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment