mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
35
react-app/node_modules/babel-plugin-transform-react-display-name/README.md
generated
vendored
Normal file
35
react-app/node_modules/babel-plugin-transform-react-display-name/README.md
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# babel-plugin-transform-react-display-name
|
||||
|
||||
Add displayName to React.createClass calls
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ npm install babel-plugin-transform-react-display-name
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Via `.babelrc` (Recommended)
|
||||
|
||||
**.babelrc**
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["transform-react-display-name"]
|
||||
}
|
||||
```
|
||||
|
||||
### Via CLI
|
||||
|
||||
```sh
|
||||
$ babel --plugins transform-react-display-name script.js
|
||||
```
|
||||
|
||||
### Via Node API
|
||||
|
||||
```javascript
|
||||
require("babel-core").transform("code", {
|
||||
plugins: ["transform-react-display-name"]
|
||||
});
|
||||
```
|
Reference in New Issue
Block a user