insin / babel-plugin-react-html-attrs

Babel plugin which transforms HTML and SVG attributes on JSX host elements into React-compatible attributes

Home Page:https://astexplorer.net/#/gist/0008d677e8156dab437be51d1fee1757/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how about style arrtibute

craigcosmo opened this issue · comments

can we use style attribute like normal?

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

instead of

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

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