This was written as a part of a blog I wrote here: https://interbolt.org/blog/react-use-selector-optimization/. As it turns out, selectors are not the best approach going forwards, so this library no longer has a good use case.