# use-select-react

> select items in a list

Latest version **1.0.1** (published 2021-11-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install use-select-react
pnpm add use-select-react
yarn add use-select-react
bun add use-select-react
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-24 |
| First published | 2021-11-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | majid darvish |
| Maintainers | majiddarvish |
| Keywords | npm, react |

## Links

- npm: https://www.npmjs.com/package/use-select-react
- Repository: https://github.com/majidux/useSelect
- Homepage: https://github.com/majidux/useStates#readme
- Issues: https://github.com/majidux/useStates/issues
- npm.io page: https://npm.io/package/use-select-react

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-24
- 1.0.0 — 2021-11-24

## README

# useSelect

### [npm link](https://www.npmjs.com/package/use-select-react)

#### How to install

###### With npm:

```javascript
npm install --save use-select-react
```

###### With yarn:

```javascript
yarn add use-select-react
```

#### How to use:

```javascript
import { useSelect } from 'use-select-react';
const Example = () => {
  const [selectedItems, setSelect] = useSelect<SomeType>();
  return (
    <div>
      {someArray.map((item) => {
        return <span onClick={setSelect.bind(null, item)}>{item.name}</span>;
      })}
    </div>
  );
};
```

---
_Source: https://npm.io/package/use-select-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
