UNPKG

use-query-params

Version:

React Hook for managing state in URL query parameters with easy serialization.

1 lines 266 B
The tests in the shared.tsx are re-used in the adapter packages (e.g. for React Router 5 and 6). This was the only way I could think of to get it working given mixed dependency versions and annoyances with packaging/importing different versions of react and history.