Last active
August 8, 2023 14:01
-
-
Save arnoldc/ed46b4a6a514b869690460ac2e5dcba6 to your computer and use it in GitHub Desktop.
[React] useCallback
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
| // useCallback and useMemo are used to memoize functions and values respectively. | |
| const onClick = useCallback(() => { | |
| }, []); | |
| <div onClick={onClick} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment