how to add multiple style attributes in react element
style is just an Object, with css value turn to camelCase, so you could use any way to merge two object, and it should work.
ES6: style={Object.assign({}, style1, style2)}
ES7: style={{...style1, ...style2}}
lodash: style={_.merge({}, style1, style2)}
Also in JavaScript:
- fa icons react
- react check if string is mail
- js array contains
- add 10px to width js
- edit html javascript
- how to add links in react js
- add select option jquery
- jquery click function
- javascript moment
- js obj getting count of properties
- display none js
- console in jsfiddle site:stackoverflow.com
- how to make a screen recording software with js
- how to change a string to number in javascript
- how get count of letters in javascript
- js remove spaces
- rest arguments javascript
- create react element with string
- angular firebase
- ejs-multiselect
- javascript settimeout loop
- javascript increment alphabet
- javascript progress of xml http request
- discord.js reply to message author