Aug 23, 2017 · 1 min read
There is a third way to avoid allocating a new function on each render: memoize the binding of the arguments to the function. I’ve just created an npm package, memo-bind, to do just that. It seems to work great and I like not having to factor out tiny components just to avoid performance issues. Check out the package on npm or github and let me know what you think!
