margaritahumanitarian / helpafamily

Found unnecessary fragments JS-0424
Anti-pattern
Major
1 occurrence in this check
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
 9export default function PrimaryLayout({ main = false, image, children }) {
10  const { backgroundColor, textColor } = useContextTheme();
11  return (
12    <>13      <div className={`flex flex-col min-h-screen ${backgroundColor}`}>14        <Navbar />15        <main className={`flex-grow ${backgroundColor} text-${textColor}`}>16          <HeroSectionModified image={image} main={main} />17          {children}18        </main>19        <Footer />20      </div>21    </>22  );
23}
24