Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

apply multiple style objects in react js

// REACT JS STYLING - Snippet 1

//--- Use belowe methods ---
ES6: style={Object.assign({}, style1, style2)}
ES7: style={{...style1, ...style2}}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apply #multiple #style #objects #react #js
ADD COMMENT
Topic
Name
2+1 =