DEV Community

Discussion on: Introduction to React.memo, useMemo and useCallback

Collapse
 
kibobishtrudelz profile image
Petar Kolev

React.memo() is a HOC. You can use it with class components as well with functional ones. It's not true that it comes handy only on functional components. useMemo i a hook and it goes only to functional components.