If expensive component extended React.PureComponent instead of being just a function call it would still work.
New appearance of hooks and effects made people not use PureComponent class and replaced everything with functions that return JSX declared stuff. There’s no diffing happening this way.