logoalt Hacker News

motoresttoday at 7:38 AM0 repliesview on HN

> I feel like these functional GUI renderers are all trying to make JS something it is simply not.

I wholeheartedly agree.

I liked React's support for function components and hooks are quite a treat, but still I think class components are a far better fit for complex components that have logic and state. I'm seeing all this complex logic being expressed as a convoluted mix of hooks and I can't help myself thinking it would be far cleaner to have a class where this logic was handled eith plan old inversion of control.