alex-cory/react-useportal

View on GitHub
examples/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function Example2 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Example2 = () => {
  const {
    openPortal: openFirstPortal,
    closePortal: closeFirstPortal,
    isOpen: isFirstOpen,
Severity: Minor
Found in examples/index.js - About 1 hr to fix

    Function Example3 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const Example3 = () => {
      const { openPortal, closePortal, isOpen, Portal } = usePortal({
        programmaticallyOpen: true,
        onClose: () => setOpen(false)
      })
    Severity: Minor
    Found in examples/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status