studying computer science and making things for the web
tl;dr. The anti-pattern is creating new arrays, objects, functions or any other new identities during render or in Redux connect(mapState).
Let’s remain with the Counters, as it’s basic enough to not distract from what we’re trying to understand. To kick things off, let’s assume we have a counter.js file.