Fügen Sie den Zustand in einen Klassennamen in ReactJs hinzu
className={`banner ${active ? "active" : ""}`}
Dayanaohhnana
className={`banner ${active ? "active" : ""}`}
<div className={`banner ${active ? "active" : ""}`}>{children}</div>
<span className={todo.completed ? "true" : ""}>