examples/index.js
Function Example2
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Example2 = () => {
const {
openPortal: openFirstPortal,
closePortal: closeFirstPortal,
isOpen: isFirstOpen,
Function Example3
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Example3 = () => {
const { openPortal, closePortal, isOpen, Portal } = usePortal({
programmaticallyOpen: true,
onClose: () => setOpen(false)
})