javascript - Multiple properties in ReactJS inlined styles object? -
how write equivalent to
css
.class { display: flex; display: -webkit-flex; }
but using inline styles in react?
i'm looking like:
javascript
let styles = { display: ['flex', '-webkit-flex'] }
your problem reactjs common problem still opened , waiting proper solution
for webkit style, 1 solution concat values:
let styles = { display: 'flex; display:-webkit-flex' }
otherwise, more common solution create css named 'flex
' given classname
property of element.
third solution: use radium. believe big & tedious problem can try if have time... :)
Comments
Post a Comment