Whether you use React now, tried it in the past, or decided not to try it – what could make React better for you?
Ask HN: How can we make React better?
1–10 of 68 posts
Re: Ask HN: How can we make React better?
#2Re: Ask HN: How can we make React better?
#3be more like Vue
Re: Ask HN: How can we make React better?
#4It may be an ecosystem problem but I think the big projects have an obligation to set the tone for what is acceptable elsewhere and not just jump on the next wizbang thing that’s marginally better or more correct.
Pros and cons but I see the cost of maintenance being very high in client side js compared to backend.
Re: Ask HN: How can we make React better?
#5be more like Vue
Anything in particular you think Vue does better? We'd love to improve.
I know Facebook has an internal CSS Module thing that is not open source ready. So this has been pushed off to user land. However, lack of an officially blessed style solution makes React components less reusable across projects compared to Vue. Thanks to vue-loader, the Vue community can focus on other things. I am NOT advocating for single file components like Vue, I am hoping that FB can just bless a solution so we can move forward as community.
Re: Ask HN: How can we make React better?
#6Re: Ask HN: How can we make React better?
#7Earlier quoted context omitted.
Anything in particular you think Vue does better? We'd love to improve.
Styles. I know Facebook has an internal CSS Module thing that is not open source ready. So this has been pushed off to user land. However, lack of an officially blessed style solution makes React components less reusable across projects compared to Vue. Thanks to vue-loader, the Vue community can focus on other things. I am NOT advocating for single file components like Vue, I am hoping that FB can just bless a solut…
I'm really quite pleased Vue sort applied the component approach to styles by slapping them in the component file and then left it at that.
Re: Ask HN: How can we make React better?
#8Earlier quoted context omitted.
Anything in particular you think Vue does better? We'd love to improve.
Styles. I know Facebook has an internal CSS Module thing that is not open source ready. So this has been pushed off to user land. However, lack of an officially blessed style solution makes React components less reusable across projects compared to Vue. Thanks to vue-loader, the Vue community can focus on other things. I am NOT advocating for single file components like Vue, I am hoping that FB can just bless a solut…
But if OP reads this comment, I outlined it here:
https://stackoverflow.com/questions/52636618/modifying-react...
Re: Ask HN: How can we make React better?
#9I’ll bite. I have been frustrated with the lack of stable apis in JS in general over the last few years. It may be an ecosystem problem but I think the big projects have an obligation to set the tone for what is acceptable elsewhere and not just jump on the next wizbang thing that’s marginally better or more correct. Pros and cons but I see the cost of maintenance being very high in client side js compared to backend…
The frontend ecosystem is definitely less mature than backend. Gmail and Google Maps, two of the first "real" client-side applications, were launched in 2004 and 2005 – so the entire ecosystem is really about a dozen years old. Before that people didn’t really “realize” that JS and web was a real programming environment. That means there's a lot to catch up on and a lot to experiment with as people figure out the best ways to build things. Compare this to backend or infrastructure development which have had decades to develop.
That said – I completely recognize that this can be painful. You don't always need to use the latest stuff though. If a "less fashionable" technology does the job for you, you can definitely use it. And trying to mitigate some of this complexity is why my team works on projects like Create React App which (whether or not you're using React) can insulate you from some of the "churn" that people often feel in the ecosystem.
In React itself, we try to have as few breaking changes as possible. (And our team needs to keep 50,000 components at Facebook working through our changes, which is a major incentive to not break things unnecessarily.) Our last major release, React 16, was released in Sep 2017. But it actually included almost no breakages (we mostly bumped the version number out of caution because it included a huge number of internal refactors). So I'd say our last "actually breaking" release was React 15, in Apr 2016, about 2.5 years ago. React 17 will probably be released sometime next year, so we're talking 3-ish years between releases. I think it's hard to do much better than that without stopping forward progress. Note that if we don't improve React quickly enough people will abandon it for another (incompatible) library, which doesn't really solve your problem either. So we try our best to make sure we're working on (what we think are) the right things and do our best to get it right the first time.
Re: Ask HN: How can we make React better?
#10Earlier quoted context omitted.
Styles. I know Facebook has an internal CSS Module thing that is not open source ready. So this has been pushed off to user land. However, lack of an officially blessed style solution makes React components less reusable across projects compared to Vue. Thanks to vue-loader, the Vue community can focus on other things. I am NOT advocating for single file components like Vue, I am hoping that FB can just bless a solut…
I actually found a bug last week with React's styling logic. I haven't submitted a bug report yet because, well, I'm lazy. But if OP reads this comment, I outlined it here: https://stackoverflow.com/questions/52636618/modifying-react...