Y
Hacker News
new
|
ask
|
show
|
jobs
by
sophiebits
2718 days ago
useCallback is designed for this. useMemo also helps solve the problem from another angle that previously wasn’t as accessible.
Additional reading:
https://reactjs.org/docs/hooks-faq.html#are-hooks-slow-becau...
.