best way to write conditional classes react code example
Example: react conditional classname
<div className={`banner ${active ? "active" : ""}`}>{children}</div>
<div className={`banner ${active ? "active" : ""}`}>{children}</div>