Ghost Together
Oct 20, 2022

--

Article describes core React functionality as a problem. There is a reason why useEffect runs for all without []. Because it's a use case. So is []. So is [loading, data], etc. It runs twice in strict mode on purpose, it's not a bug. And you can disable strict mode while developing.

--

--

Ghost Together
Ghost Together

Written by Ghost Together

Ghost Together @ https://semicolon.dev is an alternative to Twitter. Sign up to meet other makers of things.

Responses (1)