react classname conditional with array code example
Example: react conditional classname
<div className={`banner ${active ? "active" : ""}`}>{children}</div>
<div className={`banner ${active ? "active" : ""}`}>{children}</div>