react use fuzzy:使用Fuse.js进行客户端模糊搜索的React Hook 源码

上传:qqstretch34489 浏览: 19 推荐: 0 文件:ZIP 大小:58.62KB 上传时间:2021-04-06 19:21:00 版权申诉
React使用模糊 Typescript中的react挂钩,用于使用进行客户端模糊搜索。 :rocket: 安装 $ npm install --save react-use-fuzzy :balloon: 用法 import React , { useState } from 'react' ; import { useFuzzy } from 'react-use-fuzzy' ; import './App.css' ; interface Product { id : number ; name : string ; } interface ProductItemProps { product : Product ; } const ProductItem : React . FC < ProductItemProps> = ( { product } ) => { return < l
上传资源
用户评论