News for hackers. Stuff that matters.
Re:React Fundamentals: What I’m Learning by Octoth0rpe on Tuesday November 03, 2020 @12:58PM (#24982106)
> There's no reason for it to provide classes

I'm not sure I follow. ES classes predate react significantly IIRC. React may have been the first 'popular' library that made use of them extensively, but I don't think facebook should get credit for this one

> There's no reason why JSX had to be included at the same time with React

Without jsx, the value of react code is _much much_ lower IMO. I don't think it had any chance of catching on without it.

>Some people even throw Redux at the junior programmer at the same time.

Definitely agree that that is a mistake, but it also seems to be a mistake that people are long past. Not many people advocate redux these days, which I find unfortunate given how good redux toolkit makes it. That said, even without redux toolkit, it's definitely not something to throw at junior developers in their first week

...maybe week 3.

Re:React Fundamentals: What I’m Learning by acemarke on Tuesday November 03, 2020 @01:26PM (#24982417)
> ES classes predate react significantly IIRC

No, React was announced in May of 2013, and ES6 wasn't finalized until a couple years later.

> it's definitely not something to throw at junior developers in their first week

FWIW, we specifically recommend that most folks should _not_ learn Redux until they're already comfortable with React. In fact, the new "Redux Essentials" [0] and "Redux Fundamentals" [1] core docs tutorials specifically say "we assume you know React already" as a prerequisite. (And yes, I really wish bootcamps didn't throw devs straight into Redux, but I understand why that happens. That's a large part of why I just rewrote our tutorials.)

> Not many people advocate redux these days, which I find unfortunate given how good redux toolkit makes it.

Appreciate the kind words :)

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

[1] https://redux.js.org/tutorials/fundamentals/part-1-overview

Re:React Fundamentals: What I’m Learning by efdee on Tuesday November 03, 2020 @01:33PM (#24982511)
> I'm not sure I follow. ES classes predate react significantly IIRC. Before React started supporting ES classes, they had React.createClass instead. I assume that is what the poster is referring to.