Handvask / handvask

Found unnecessary fragments JS-0424
Anti-pattern
Major
a year agoa year old
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
19      onClose={onClose}
20      show
21      footer={
22        <>23          <Button kind="secondary" onClick={onClose}>24            Close25          </Button>26        </>27      }
28    >
29      <p>Best solver: {run.best_solver.name} </p>
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
18        </li>
19      );
20    }
21    return <></>;22  }
23  return (
24    <nav
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
16      onClose={onClose}
17      show
18      footer={
19        <>20          <Button kind="secondary" onClick={onClose}>21            Close22          </Button>23        </>24      }
25    >
26      <div className="accordion" id="tmpResultAccordion">