dynsmic calss in react add

JavaScript
className={`box ${isBoxVisible ? "" : "hidden"}`}
Source

Also in JavaScript: