Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react usememo vs usecallback

useMemo is to memoize a calculation result between a function's calls and between renders
useCallback is to memoize a callback itself (referential equality) between renders
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #usememo #usecallback
ADD COMMENT
Topic
Name
9+9 =