Using the css-in-js method to add classes to a response component, how to add multiple components?
Here is the class variable:
const styles = theme => ({ container: { display: 'flex', flexWrap: 'wrap' }, spacious: { padding: 10 }, });
Here is how I used it:
return ( <div className={ this.props.classes.container }>
The above works, but is there a way to add both classes without using the classNames npm package? Something like:
<div className={ this.props.classes.container + this.props.classes.spacious}>
css reactjs material-design material-ui jss
fatahn
source share