Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

usememo vs usecallback

---- useMemo vs useCallback -----------------------------------------

useMemo: memoize A CALCULATION RESULT between a function's calls
and between renders.

useCallback: memoize A CALLBACK ITSELF (referential equality) 
between renders.

---------------------------------------------------------------------
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #usememo #usecallback
ADD COMMENT
Topic
Name
2+1 =