News for hackers. Stuff that matters.
Re:React Best Practices for 2021 by hardwaregeek on Saturday February 13, 2021 @01:19PM (#26125417)
Meh. These aren't great tips. One of these tips is for class components, which while still relevant, aren't exactly new as of 2021. I learned that class binding trick in 2017.

Using hooks and useMemo? That's essentially stolen from the React tutorials.

Pure functions? Sure, that's useful but the example is ridiculous. How would you have an impure comparison function?

In general not a huge fan of these filler content marketing front end posts. If you're gonna advertise your company, at least provide some interesting content.

Re:React Best Practices for 2021 by acemarke on Saturday February 13, 2021 @01:22PM (#26125437)
Agreed. We get a lot of these posts submitted to /r/reactjs . The only ones I find to be halfway decent are from LogRocket - the posts are usually of reasonable technical quality and on topic.

All the other examples I see are very much just filler, and some end up being true spam.