Skip to content

Instantly share code, notes, and snippets.

@ozmoroz
Created August 1, 2018 07:35
Show Gist options
  • Save ozmoroz/e55f26ce4c85ead8a600e145b336ebce to your computer and use it in GitHub Desktop.
Save ozmoroz/e55f26ce4c85ead8a600e145b336ebce to your computer and use it in GitHub Desktop.
onClick via inline functions (don't do that)
handleClick = (…args) => (event) => {…}
<button onClick=(handleClick(…args)}>Button</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment