Aug 23, 2017 · 1 min read
There is another option to dealing with this that avoids having to factor out a child component, and also can bind more than one argument to a function. You just have to memoize the binding of the arguments! I created my very first npm package, memo-bind, that does just. Check it out, and tell me what you think. It should be pretty easy to use, and I’ve included a small example.
