Skip to content

Instantly share code, notes, and snippets.

@infinitypaul
Created August 28, 2019 09:34
Show Gist options
  • Save infinitypaul/a6979c23e2a0a08ccbb399fbeffbc103 to your computer and use it in GitHub Desktop.
Save infinitypaul/a6979c23e2a0a08ccbb399fbeffbc103 to your computer and use it in GitHub Desktop.
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