DEV Community

Discussion on: Caching Component data in React

Collapse
 
wsrast profile image
Wesley Rast • Edited

Why not just use a functional component and the useMemo hook? Or, if you're passing the result as props to another component, the React.memo() function?