reactjs - Prefixing inline styles in an isomorphic react app -


are there simple ways patch react autoprefix styles, such rendered html doesn't differ on client , server?

for example, possible get

<div style={{display: 'flex'}}/> 

to render (ignoring data-reactid):

<div style="display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;"/> 

in specific case posted, may have make function in pass style , creates correct styles. in cases simple prefix work, use react-prefixr adds ms,webkit,etc. style structure. if display:flex not handled react-prefixr, can submit pr.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -