Created
          July 12, 2022 11:50 
        
      - 
      
 - 
        
Save szaranger/a8853045eddefc6de88d05369f2227c4 to your computer and use it in GitHub Desktop.  
  
    
      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
    
  
  
    
  | function calc(x, y) { | |
| return x + y; | |
| } | |
| const memoizedCalc = useCallback(() => { | |
| return calc(a, b); | |
| }, [a, b]); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment