I am trying to put two variables inside a style block in Reactjs. How do you go about doing this?
var GlobalStyles = require(./jsStyles/GlobalStyles.js);
var moduleSpecificStyles = {
hide:{
'display':'none'
},
//more styles
};
...
render:function(){
return (
...
<div style={GlobalStyles.container, moduleSpecificStyles.hide}></div>
)
}
This does not seem to work. It will work on either one if I only have one in. But adding both, I am not sure how to get it working.