margaritahumanitarian / helpafamily

Found unnecessary fragments JS-0424
Anti-pattern
Major
2 years ago3 years old
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all
14}) {
15  const { backgroundColor, textColor } = useContextTheme();
16  return (
17    <>18      <div className={`flex flex-col min-h-screen ${backgroundColor}`}>19        <Navbar />20        <main className={`flex-grow ${backgroundColor} text-${textColor}`}>21          <HeroSection image={image} inNeed={inNeed} main={main} />22          {children}23        </main>24        <Footer />25      </div>26    </>27  );
28}
29
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all
30          }
31        </CardParagraph>
32      }
33      title={<>{'Hot Meal Day'}</>}34    />
35  );
36}
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all
37          </CardParagraph>
38        </>
39      }
40      title={<>{'Health Education Workshop'}</>}41    />
42  );
43}
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all
30          }
31        </CardParagraph>
32      }
33      title={<>{'Food Distribution Support'}</>}34    />
35  );
36}
Fragments should contain more than one child - otherwise, there‘s no need for a Fragment at all
30          }
31        </CardParagraph>
32      }
33      title={<>{'Fall Prevention Class'}</>}34    />
35  );
36}