JSPM

@arcblock/react-hooks

2.13.36
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2296
  • Score
    100M100P100Q117678F
  • License Apache-2.0

React hooks used by arcblock products

Package Exports

  • @arcblock/react-hooks
  • @arcblock/react-hooks/lib/index.js
  • @arcblock/react-hooks/lib/useBrowser
  • @arcblock/react-hooks/lib/useBrowser.js
  • @arcblock/react-hooks/lib/useInterval
  • @arcblock/react-hooks/lib/useInterval.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@arcblock/react-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@arcblock/react-hooks

DID UI components shared across arcblock products

Usage

yarn add @arcblock/react-hooks

Then:

import useInterval from '@arcblock/react-hooks/lib/useInterval';

useInterval(
  () => {
    // do something
  },
  condition ? 1000 : null
);