Harry Yates
I'm a web developer focused on TypeScript, React, and Three.js.
useCallback in React helps prevent unnecessary re-renders by memorising functions.
Optimises performance by memoising values, recalculating only when dependencies change.
useRef in React acts like a bookmark for elements or a pocket for mutable values. It persists through re-renders without triggering updates.