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
Post a Comment