Create WhatsApp clone with Next.js Part 32 Fuzzy search the friends
Importing Fuse.js to do the fuzzy search
Published in
2 min readNov 29, 2021
This is a bonus part that in this WhatsApp clone project, when you search your friends, instead of just displaying all the friends. You want to display according to your input, we can do some fuzzy search by employing an npm package called fuse.js.
We can add by typing
yarn add fuse.js
Go to the top and import Fuse
import Fuse from 'fuse.js'