Created
February 19, 2017 18:45
-
-
Save graphan/781c5aaa628553acb4209a70cf0b3a3e to your computer and use it in GitHub Desktop.
Old way of handlers in React Components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Component = () => { | |
const onClickHandler = () => { | |
... | |
}; | |
return ( | |
<div onClick={onClickHandler}></div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment