npm

@components-plus/debounce

1.0.0 • Public • Published

📦 Installation

npm install @components-plus/debounce

🔨 Usage

function App() {
    return (
        <div>
            <Debounce>
                <button
                    onClick={() => {
                        console.log("点击了")
                    }}
                >
                    点击
                </button>
            </Debounce>
        </div>
    )
}

see demo

🔨 API

name type description defaultValue required
delay number 延迟时间 250 false
is FunctionComponent<P> ComponentClass<P> keyof ReactHTML
string
false

Readme

Keywords

Package Sidebar

Install

npm i @components-plus/debounce

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

9.43 kB

Total Files

6

Last publish

Collaborators

  • ysl-cml
  • tspan