News for hackers. Stuff that matters.
Re:Learning Node.js and React while building a product by baron816 on Tuesday June 13, 2017 @02:39PM (#14547381)
You don't have to use 'this' at all in React. I've written about it here: https://medium.com/@baronmaximilianwilleford/react-without-t...

I never use 'this', 'bind', 'apply', 'call', 'class', and only use 'new' to create React components. I find it much easier and more fun to work with React as a result. I hope other people would give it a try.

Re:Learning Node.js and React while building a product by kaonashi on Tuesday June 13, 2017 @04:22PM (#14548269)
bind is useful as a curry that's built-in, but I always pass `null` as the first argument.

not a huge fan of the `new` keyword in js; it's difficult to mock and there are better options (Object.create/freeze e.g.)

Re:Learning Node.js and React while building a product by hitgeek on Tuesday June 13, 2017 @02:53PM (#14547507)
i'm going to give this a try, thanks!