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:
@@ -5,12 +5,12 @@ should enable this transform in dev mode.
|
||||
|
||||
## Example
|
||||
|
||||
###In
|
||||
### In
|
||||
|
||||
```
|
||||
<sometag />
|
||||
```
|
||||
###Out
|
||||
### Out
|
||||
|
||||
```
|
||||
<sometag __self={this} />
|
||||
@@ -19,7 +19,7 @@ should enable this transform in dev mode.
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ npm install babel-plugin-transform-react-jsx-self
|
||||
npm install babel-plugin-transform-react-jsx-self
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -37,7 +37,7 @@ $ npm install babel-plugin-transform-react-jsx-self
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
$ babel --plugins transform-react-jsx-self script.js
|
||||
babel --plugins transform-react-jsx-self script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
Reference in New Issue
Block a user