Hacker News new | ask | show | jobs
by benatkin 2945 days ago
This comes from a well-known and respected thought leader. There are different types of thoughts, though. This is simply an observation:

> Don’t @ me I’m not trying to start a controversy. I’m only stating an observation.

https://twitter.com/SaraSoueidan/status/1001189524477743105

React, like jQuery, could have done more to keep people from writing bad code. With React, they made the same mistake that Angular did, which was to impose strict rules on all developers. Vue, to its credit, doesn't make this mistake. It's much less opinionated about state management.

2 comments

> This comes from a well-known and respected thought leader.

I don't disagree but will push back slightly on the appeal to authority. I think in JS land we're getting a little too carried away with celebrity developers (I often joke about "what would Dan Abramov say?" and it's only half-joke). I've been trying hard to focus on the ideas, without regard from who said it.

They should done more to keep people from writing bad code, they should have less rule.

What does that even mean?

In this case, doing more means responding to the real-world usage of React, and making it so that lifting state up isn't the only recommended option. Vue did this and is grabbing some market share from React. https://reactjs.org/docs/lifting-state-up.html