@chocolab/hooks
TypeScript icon, indicating that this package has built-in type declarations

1.0.4-alpha.0 • Public • Published


deps dev-deps chat Maintainability Codacy Badge License: GPL v3 npm version npm size npm downloads npm vulnerabilities


@chocolab/hooks

React hooks.

Install

yarn add @chocolab/hooks

Usage

import { useAxios, useNextAuth } from '@chocolab/hooks'

function Component() {
  const { data, loaded, error } = useAxios({
    method: 'get',
    url: 'google.co.ve'
  })
  const { token, setToken } = useNextAuth('LOCALSTORAGE_KEY', '/redirect-to', true /* where in login */)
  return <></>
}

Maintainers


jefer94

Readme

Keywords

none

Package Sidebar

Install

npm i @chocolab/hooks

Weekly Downloads

1

Version

1.0.4-alpha.0

License

MIT

Unpacked Size

16.4 kB

Total Files

11

Last publish

Collaborators

  • jefer94