react-search-fuse
A Fuse.js powered client side fuzzy search react component.
disclaimer: This is still a bit of a work in progress. It has some limitations, so use at your discretion
Installation and Usage
npm install react-search-fuse
Import ReactSearchFuse
where you would like to use it.
Supply some documents
, specify the options
, and a filter
to search by.
Then just supply a children
render function which will
receive results
.
<ReactSearchFuse = =[ , ]> result</ReactSearchFuse>
Todo
This isn't quite finished. Some of the planned changes:
- the fuse index is rebuild on every rerender, it could probably be more performant