Created
April 13, 2021 15:54
-
-
Save brlafreniere/e39792f1ffa0c7194fe8d085c206e026 to your computer and use it in GitHub Desktop.
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
const MyComponent = function(props) { | |
// does this get redefined each time MyComponent is rendered? And is that a significant performance loss? | |
function doStuff() { | |
... | |
} | |
return ( | |
<form onSubmit={doStuff}> | |
... | |
</form> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment