News for hackers. Stuff that matters.
Re:Vanilla-todo: A case study on viable techniques for vanil... by Cthulhu_ on Tuesday October 27, 2020 @10:19AM (#24907649)
Disagree; the "done thing" in React has shifted since then (moving from class-based components and HOCs to functional components and hooks), and in the wider ecosystem, Redux is being abandoned in favor of more React native things like Context.

While React apps in 2015 probably still work with the newest versions of React, you can't put a 2015 React dev in a 2020 project and vice-versa as if nothing's changed.

Re:Vanilla-todo: A case study on viable techniques for vanil... by nicoburns on Tuesday October 27, 2020 @10:52AM (#24907970)
Hooks are new but they aren't really that complicated. The junior developers on my team were more or less up to speed after a couple of hours reading the docs and a couple of hours implementing their first hook based component.

Our app is still using Redux, so I guess that one hasn't hit us yet (but there's also no real reason for us to update to a newer method).

Re:Vanilla-todo: A case study on viable techniques for vanil... by acemarke on Tuesday October 27, 2020 @09:09PM (#24913879)
I can assure you that Redux is not "dead" or "being abandoned":

https://blog.isquaredsoftware.com/2018/03/redux-not-dead-yet...

https://blog.isquaredsoftware.com/2020/10/presentation-state...

Sure, it's definitely _peaked_, because there's a lot of other great options in the React ecosystem these days. But, there's still plenty of good reasons to use Redux. And, with our new Redux Toolkit package and the React-Redux hooks API, "modern Redux" code is a lot different than what you've seen in the past, as shown in our new "Redux Essentials" tutorial:

https://redux.js.org/tutorials/essentials/part-1-overview-co...

Re:Vanilla-todo: A case study on viable techniques for vanil... by hajile on Tuesday October 27, 2020 @05:58PM (#24912433)
If you use context, you'll just wind up rewriting flux, redux, Rx, Event, mobx, or whatever in what is likely a worse manner.
Re:Vanilla-todo: A case study on viable techniques for vanil... by hackerfromthefu on Tuesday October 27, 2020 @01:08PM (#24909430)
and in the real world react apps use countless npm packages, which get regularly deprecated as react versions move forward .. the real world churn in react land is most unfortunate
Re:Vanilla-todo: A case study on viable techniques for vanil... by nicoburns on Tuesday October 27, 2020 @02:16PM (#24910189)
> in the real world react apps use countless npm packages

This is often the case in practice. But it's a pretty easy problem to avoid. Usually those packages simply aren't necessary in the first place.