DEV Community

loading...

Discussion on: Fast & easy... React states management in one function

acostalima profile image
André Costa Lima

You can create a curried function and then memoize it. đŸ˜‰ It should work! Have a look at Lodash's curry and memoize functions.