How to use the @rehooks/local-storage.writeStorage function in @rehooks/local-storage

To help you get started, we’ve selected a few @rehooks/local-storage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strvcom / dep-manager-web / src / config / auth.ts View on Github external
(err, data: INetlifyResponse) => {
      if (err) {
        alert('Could not authenticate. Try again later.')
        return console.error(err)
      }

      writeStorage(GITHUB_TOKEN_KEY, data.token)
    }
  )

@rehooks/local-storage

React hook for local-storage

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis