Memorization
適用 child component 是 pure 也就是沒有 useStae, useContext 時
Implement memo
array 是 by reference 所以 map 的 key 不能直接 [1, 2] ,不然有可能
Last updated
Was this helpful?
適用 child component 是 pure 也就是沒有 useStae, useContext 時
array 是 by reference 所以 map 的 key 不能直接 [1, 2] ,不然有可能
Last updated
Was this helpful?