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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -