<Memo />
React component used to isolate children from unnecessary re-renders.
Source code is hosted on GitHub
<Memo />
Memoizes children components to prevent unnecessary re-renders. Children get re-rendered only when one of the fields passed into the deps
array changes, very similar to how useEffect
, useMemo
and useCallback
work. You can also display the render count for debugging purposes by setting the showRenders
property to true
.
Last updated