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
DID UI components shared across arcblock products
Usage
yarn add @arcblock/react-hooksThen:
import useInterval from '@arcblock/react-hooks/lib/useInterval';
useInterval(
() => {
// do something
},
condition ? 1000 : null
);