How can I merge the following two lines of code together?
className={`first-class second-class-${data.type}`}
className={data.category === 'ball' ? 'my-ball' : ''}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
How can I merge the following two lines of code together?
className={`first-class second-class-${data.type}`}
className={data.category === 'ball' ? 'my-ball' : ''}