Re:React I love you, but you're bringing me down
by phailhaus on Tuesday September 20, 2022 @12:53PM
(#32914494)
Yeah, it's not great, but that's because it's extremely general purpose. Its name refers to function side-effects. Since you're writing your components functionally, you need to explicitly declare any effects of your function to be run appropriately. Hence: `useEffect`. The names are super generalized because hooks don't necessarily need to render anything; they're just hooks into the React scheduler, so they can even be used to manage connection state if you want.
[ Parent
| on HN ]
There are no comments on this comment yet.