https://github.com/webextensions/react
React based Components and Hooks
https://github.com/webextensions/react
Last synced: 2 months ago
JSON representation
React based Components and Hooks
- Host: GitHub
- URL: https://github.com/webextensions/react
- Owner: webextensions
- Created: 2023-08-06T20:21:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-26T15:27:48.000Z (6 months ago)
- Last Synced: 2025-12-28T04:32:58.754Z (6 months ago)
- Language: JavaScript
- Size: 1.73 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @webextensions/react
React based Components and Hooks
# Import
## Components
### AfterDelay
```js
import { AfterDelay } from '@webextensions/react/components/AfterDelay/AfterDelay.js';
```
### ClickToShow
```js
import { ClickToShow } from '@webextensions/react/components/ClickToShow/ClickToShow.js';
```
### CopyIcon
```js
import { CopyIcon } from '@webextensions/react/components/CopyIcon/CopyIcon.js';
```
### Loading
```js
import '@webextensions/react/components/Loading/Loading.css';
import { Loading } from '@webextensions/react/components/Loading/Loading.js';
```
## Hooks
### useAjax
```js
import { useAjax } from '@webextensions/react/hooks/useAjax/useAjax.js';
```
### useLocalStorage
```js
import { useLocalStorage } from '@webextensions/react/hooks/useLocalStorage/useLocalStorage.js';
```
### useMinHeight
```js
import { useMinHeight } from '@webextensions/react/hooks/useMinHeight/useMinHeight.js';
```
# For Developers
Steps to publish:
```sh
$ npm install
$ npm test
$ npm run install-without-peerDependencies
$ npm start
$ npm version
$ npm publish
```