Created
August 28, 2019 09:34
-
-
Save infinitypaul/a6979c23e2a0a08ccbb399fbeffbc103 to your computer and use it in GitHub Desktop.
This file contains 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
const MyComponent = props => { | |
const innerFunction = () => { | |
// a function in a function! | |
// this function object (stored in the 'innerFunction' constant) is constantly re-built | |
// to be precise: It's re-built when MyComponent is re-built | |
// MyComponent is re-built whenever its 'props' or 'state' changes | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment