JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q39518F
  • License MIT

use-url-sync is a utility package that helps you sync your states to url without hassle

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 useState hook function
  • Sync your states's values to url using useUrlSync hook function
  • Get synced url directly from getUrlString function

💾 Installation

npm install use-url-sync

or

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