0.0.6 • Published 4 years ago

react-hooks-outside-click v0.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

OutsideClick

描述:
创建人:sophiehui
创建时间:20191114
仓库地址:git@github.com:sophiehui99/OutsideClick.git

参数描述

参数名类型是否必须说明默认值

Blog

-

example
import OutSideClick from 'react-hooks-outside-click';
import React from 'react';

const InsideComponent = () =>{
    return(
        <OutSideClick onClickOutside = {()=>{console.log('点击我的外侧,我就会被打印')}}>
            <div>
                    我是内部,请点击我的内外部测试
                </div>
        </OutSideClick>
        )
}
0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago