@webextensions/react
React based Components and Hooks
Import
Components
AfterDelay
import { AfterDelay } from '@webextensions/react/components/AfterDelay/AfterDelay.js';
ClickToShow
import { ClickToShow } from '@webextensions/react/components/ClickToShow/ClickToShow.js';
CopyIcon
import { CopyIcon } from '@webextensions/react/components/CopyIcon/CopyIcon.js';
Loading
import '@webextensions/react/components/Loading/Loading.css';
import { Loading } from '@webextensions/react/components/Loading/Loading.js';
Hooks
useAjax
import { useAjax } from '@webextensions/react/hooks/useAjax/useAjax.js';
useLocalStorage
import { useLocalStorage } from '@webextensions/react/hooks/useLocalStorage/useLocalStorage.js';
useMinHeight
import { useMinHeight } from '@webextensions/react/hooks/useMinHeight/useMinHeight.js';
For Developers
Steps to publish:
$ npm install
$ npm test
$ npm run install-without-peerDependencies
$ npm start
$ npm version <patch/minor/major/...>
$ npm publish