📜  usememo 与 usecallback - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:08.492000             🧑  作者: Mango

代码示例2
---- 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.

---------------------------------------------------------------------