You might not need an effect
IMO if you need a long doc like this pointing out the sharp edges, then I think you&#x27;ve done a poor job in designing the framework.<p>I love the terseness, reusability, and typing of React hooks, but hooks have too many weird edge cases (this article, dependency list, order of hooks, etc) versus class components, whose design was simple and elegant.<p>I&#x27;m just an old man yelling at clouds though, the terseness of stateful components defined in a function, plus simple typing with TS (no defining proptypes) is too appealing to me personally. Maybe I&#x27;ll check out Solid next time, which seems to have less weird edge cases.