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 11 months ago

Package Health Score

67 / 100
Full package analysis