2 ms·
It also means you're passing in a new closure to the render prop on every render. You can move it to a member on your component's class, but that makes your cod
by bastawhiz 9y ago
It also means you're passing in a new closure to the render prop on every render. You can move it to a member on your component's class, but that makes your code far hairier. It's also easy to forget to put it on the class, so you end up setting up eslint rules, and next thing you know, you've made everything worse.