insin / babel-plugin-react-html-attrs

Babel plugin which transforms HTML and SVG attributes on JSX host elements into React-compatible attributes
https://astexplorer.net/#/gist/0008d677e8156dab437be51d1fee1757/latest
MIT License
177 stars 8 forks source link

how about style arrtibute #7

Closed craigcosmo closed 4 years ago

craigcosmo commented 7 years ago

can we use style attribute like normal?

<div style="background:blue"></div>

instead of

<div style={{background:"blue"}}></div>
insin commented 4 years ago

I think handling all of the CSS rule → DOM equivalents would be too much work for this plugin.