@upr/hooks

0.1.0 • Public • Published

hooks for react

CircleCI dependencies dev dependencies Snyk Vulnerabilities for GitHub Repo License

Maintainability Test Coverage code style: prettier

installation

npm

npm i -S @upr/hooks

browser

<script src="https://unpkg.com/@upr/hooks"></script>

usage

import React from 'react'
import { useOffline } from '@upr/hooks'

export default () => {
    const fallbackValue = false
    const offline = useOffline(fallbackValue)

    return <>{offline && 'Offline'}</>
}

Readme

Keywords

Package Sidebar

Install

npm i @upr/hooks

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

15.4 kB

Total Files

15

Last publish

Collaborators

  • at0g