1.0.4-alpha.0 • Published 4 years ago
@chocolab/hooks v1.0.4-alpha.0
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
1.0.4-alpha.0
4 years ago
1.0.2-alpha.0
4 years ago