I have an element with a list of classes e.g.
<div class="class1 class2 class3">Content</div>
And I want to add this react variable to the list of classes:
{this.state.active ? ' is-active': null}
How would I go about adding it into the list, something like this?
<div class={{this.state.active ? ' is-active': null} + " class1 class2 class3"}>Content</div>
I'm having no luck at all... I'm also kinda new to react :/