Naming useEffect callback functions instead of using anonymous arrow functions is a small syntactic change with outsized benefits. Named effects make components scannable at a glance, improve stack traces in error monitoring tools like Sentry, and surface design problems: if you struggle to name an effect without using 'and',

22 Comments

Sort: