Package Exports
- use-url-sync
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-url-sync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
use-url-sync
use-url-sync is a set of tools that help you sync your state to page url. Along with with this package, you can do some awesome stuff, such as:
- Get value from url query string, that returns
useStatehook function - Sync your states's values to url using
useUrlSynchook function - Get synced url directly from
getUrlStringfunction
💾 Installation
npm install use-url-syncor
yarn add use-url-sync✔️ TypeScript Support
This package contains an index.d.ts type definition file, so you can use it in TypeScript without extra configuration.
🏷️ LICENSE
MIT