const componentClassName = [ 'some-base-class', someBooleanCondition && 'a-class-in-here', someOtherBoolean && 'another-class', ] .filter(Boolean) .join(' ')
References
https://dev.to/nickytonline/you-do-no-need-to-use-the-classnames-package-1bb
const componentClassName = [ 'some-base-class', someBooleanCondition && 'a-class-in-here', someOtherBoolean && 'another-class', ] .filter(Boolean) .join(' ')
References
https://dev.to/nickytonline/you-do-no-need-to-use-the-classnames-package-1bb