Update React transform READMEs from babel.github.io [skip ci] (#4903)

* Update React transform READMEs from babel.github.io [skip ci]

* Drop inline-elements polyfill message (move to website)
This commit is contained in:
Brian Ng
2016-11-28 19:50:17 -06:00
committed by Henry Zhu
parent 51e8fd1868
commit 4a14202e92
7 changed files with 182 additions and 20 deletions

View File

@@ -4,12 +4,12 @@ Adds source file and line number to JSX elements.
## Example
###In
### In
```
<sometag />
```
###Out
### Out
```
<sometag __source={{fileName: 'this/file.js', lineNumber: 10}}/>
@@ -18,7 +18,7 @@ Adds source file and line number to JSX elements.
## Installation
```sh
$ npm install babel-plugin-transform-react-jsx-source
npm install babel-plugin-transform-react-jsx-source
```
## Usage
@@ -36,7 +36,7 @@ $ npm install babel-plugin-transform-react-jsx-source
### Via CLI
```sh
$ babel --plugins transform-react-jsx-source script.js
babel --plugins transform-react-jsx-source script.js
```
### Via Node API