1.0.4 • Published 7 months ago

smart-filtero v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

6 months ago

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago