logoalt Hacker News

tobyhinloopentoday at 5:39 AM2 repliesview on HN

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

I want to render my view with instances of classes as a model.


Replies

motoresttoday at 7:38 AM

> 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.

rhubarbtreetoday at 6:08 AM

Please keep OO away from web dev. The mess is bad enough and adding OO will only increase coupling.

show 1 reply