Use Popper
Installation
Note: React 16.8+ is required for Hooks.
With npm
npm i use-popper
Or with yarn
yarn add use-popper
;;; { const reference popper arrow = ; const active bind = ; return <div> <button ref=referenceref ...bind> hover me </button> active && <div ref=popperref style=popperstyles data-placement=popperplacement > <div>Hello!</div> <div ref=arrowref style=arrowstyles /> </div> </div> ;} ;