useMemo
Every time a React component re-renders, it redoes all its work, including rebuilding scales and re-preparing data.
useMemo caches that work so it only happens when the inputs actually change. Let's use it to keep charts snappy.
Members only
4 minutes readThis is the first and cheapest rung of the performance ladder.
It costs you a single hook and a dependency array, and it often removes most of the lag in an interactive chart. Always start here.
Oh no! ๐ฑ
This lesson isnโt available just yet.
Take a look at the status badges next to each lesson in the sidebar to see when itโs coming out.
Thanks for your patience! ๐