re: What's hard about React Hooks for you? VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse