how to do a classname variable and string react

JavaScript
// You can use a template string
<div className={`d-flex justify-content-center ${showArrows}`} style={{ minHeight: '210px' }}>
Source

Also in JavaScript: