You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
《簡約的軟體開發思維:用 Functional Programming 重構程式》 CH8 ~ CH9
筆記章節
筆記資訊
Q&A
result
的地方會在每次 re-render 時重新計算,為了避免大量計算,就要使用 useMemoconst result = useMemo(() => calculatesPrice(items).then(), []);
useMemo
useMemo
就是類似 FP 的意思Beta Was this translation helpful? Give feedback.
All reactions