'How to implement Fuse.js with react-select

I have listed in react-select, I want to implement Fusejs with react-select. I really searched over the internet but didn't find a proper solution to achieve my goal. Could someone please help me with how to use Fuzzy search in react-select.

JSON DATA

let cities: [{label:'Phase-8', value:'phase-8}]

Seach pattern: when I type 'phase8' or 'phase/8' or 'phase-8' or 'phase-' it will retrieve list in react-select.

<Select options={cities}/>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source