Answers for "react add two classnames inline"

5

jsx classname multiple

// Using String Templates
<div className={`${this.state.className} ${this.props.content.divClassName}}`>
	...
</div>
// OR
// Using An Array
<div className={[this.state.className, this.props.content.divClassName].join(" ")}>
	...
</div>
Posted by: Guest on July-31-2020
1

add 2 class names react

<input className={`form-control round-lg ${this.state.valid ? '' : 'error'}`} />
Posted by: Guest on July-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language