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.
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.