A somewhat tricky hook usage
I recently updated a React state management library, hoping to reduce its API from two wrapper functions into a single hook. I did not succeed but I still ended up with something nice. Here is why and how.
Tags: react, hooks, javascript, webdev