-
react-overlay-trigger会在React中自动重新定位叠加组件
资源介绍
React叠加触发
零依赖性覆盖定位组件进行React。
用法
npm i -S react-overlay-trigger
import React from 'react'
import OverlayTrigger from 'react-overlay-trigger'
const Overlay = ( { style , ... rest } ) => < span> { children } < / span >
const overlay = < Overlay> yep < / Overlay >
const Button = React . forwardRef ( ( props , ref ) => < div xss=removed> )
const Demo = ( ) => (
<