1.0.4 • Published 6 months ago

smart-filtero v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

smart-filter

A ReactJS hook to get multiple filters for a list of items.

How to use it?

You can use the project in this way:

Install

# with npm
npm install smart-filter

# with yarn
yarn add smart-filter

Usage

  • Import the package in your app:
import {useSmartFilter} from 'smart-filter';
  • Set the items and subItems from the hook and get from hook what you need:
const {
  query,
  setQuery,
  filteredItems,
  selectedItems,
  selectItem,
  removeItem,
  getSubItems,
} = useSmartFilter(items, subItems);
```# smart-filter
1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

6 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago