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 to edit .babelrc

zmunro opened this issue · comments

Where is this file? Am I supposed to create it? Should there be anything in it besides what you are saying to add??

hi, yes you should create this file in the root directory
just call it .babelrc
here is how mine looks like:

{
  "plugins": [
    "react-html-attrs",
    "transform-class-properties"
  ],
  "presets": ["react", "es2015"],
  "env": {
    "development": {
      "presets": ["react-hmre"]
    }
  }
}