3.1.13 • Published 3 years ago

use-selected-items-hook v3.1.13

Weekly downloads
111
License
MIT
Repository
-
Last release
3 years ago

Author Languages Stars Forks Contributors NPM



:pushpin: Table of Contents

:construction_worker: Installation

With Yarn

yarn add use-selected-items-hook

With NPM

npm install use-selected-items-hook

:pushpin: Go to example

:computer: API

Initialization

To initialize the items array, the initialItems must be passed as an argument. It's also possible to initialize the items already with an isSelected state, but to do so, it's necessary to provide the initialSelectedItems argument.


Return Values

  • selectedItems: The items that are currently selected.
  • listItems: The items with the status of isSelected. Refer to the Usage.

Actions

  • toggleSingleItem

  • toggleAllItems

:hammer: Builds

  • es (EcmaScript module)
  • cjs (CommonJS)

:postbox: Faq

Question: What are the technologies used in this project?

Answer: The technologies and libraries used in this project are React + TypeScript and Immutability Helper to handle the array manipulation.

:bug: Issues

Feel free to file a new issue with a respective title and description on the the useSelectItems hook repository. If you already found a solution to your problem, I would love to review your pull request! Have a look at our contribution guidelines to find out about the coding standards.

:tada: Contributing

Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

:closed_book: License

Released in 2020

This project is under the MIT license.

Made with love by Laura Beatris 💜🚀

3.1.12

3 years ago

3.1.13

3 years ago

2.1.12

3 years ago

2.1.11

3 years ago

2.1.10

3 years ago

2.1.9

3 years ago

1.1.9

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.1

4 years ago