Advertisement · 728 × 90
#
Hashtag
#useMemo
Advertisement · 728 × 90
Post image

⚙️ useMemo : booste tes perfs en évitant les recalculs inutiles.

🔎 Tip : garde en mémoire le résultat d’un calcul tant que ses dépendances restent stables. Idéal les calculs lourds qui ralentissent ton rendu.
#React #JS #WebDev #useMemo

1 0 0 0
Preview
React Compiler – React The library for web and native user interfaces

Wrapping complex props (arrays, functions and objects) in #useCallback or #useMemo is less a question about #performance and everything about controling renders of child components. With React 19, this work can be outsourced to the #React #Compiler.

react.dev/learn/react-...

1 0 0 0
Preview
React useMemo Explained | TechWithTwin React re-renders each time there is a state update. What if you have a heavy function that recalculates each time the state changes…

🚀 React devs, want faster apps?

I squared 1.5M numbers in React. Without optimization, typing anywhere slowed things down - heavy calc ran every render!

useMemo memoizes expensive work to run only when needed.

Full demo + write-up 👉 medium.com/@techwithtwi...

#ReactJS #useMemo #TechWithTwin

1 0 0 0