useMemo, useCallback

Tags
설명
 
 
Custom bailout condition
memo 뒤에 커스텀으로 compare 알고리즘을 명시할 수 있다.
 
The arePropsEqual()  function acts very similar to the shouldComponentUpdate()  lifecycle method in class components, but in the reverse manner. The following code snippet uses a custom bailout condition:
 

남발 금지