React Hook for pub-sub behavior using React Router.
Fix for TypeScript support (thanks to @jacob-ebey)
Fix for TypeScript support (thanks to @jacob-ebey).