【文件属性】:
文件名称:react-debounce-throttling
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-05 12:51:23
JavaScript
reactjs-反跳
react包用于在reactjs中进行反跳搜索
安装
npm install --save reactjs-debounce
用法
import React , { Component } from 'react'
import { DebounceSearch } from 'reactjs-debounce'
class Example extends Component {
const handleDebounce = ( value ) => {
console . log ( value )
}
render ( ) {
return (
< DebounceSearch
searchText = { "Search.." }
onDebounce = { handleDebounce
【文件预览】:
react-debounce-throttling-main
----.gitignore(309B)
----.eslintrc(603B)
----package.json(2KB)
----src()
--------.eslintrc(36B)
--------index.test.js(151B)
--------index.js(1KB)
--------styles.module.css(154B)
----.travis.yml(41B)
----LICENSE(1KB)
----README.md(1KB)
----example()
--------package.json(874B)
--------src()
--------public()
--------README.md(267B)
----.eslintignore(47B)
----.editorconfig(147B)
----.prettierrc(197B)