Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react usecallback

const memoizedCallback = useCallback(
  () => {
    doSomething(a, b);
  },
  [a, b],
);
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #usecallback
ADD COMMENT
Topic
Name
2+5 =