DEV Community

Discussion on: What's hard about React Hooks for you?

Collapse
 
mmlumba profile image
Marian

Whenever I've worked with useEffect, sometimes I want certain effects to only run on mount or on update and useEffect runs on all state changes. I know there are ways to run effects only on mount (or update), but I do miss using the componentDidMount and componentDidUpdate lifecycle functions for easier readability.