babel-plugin-transform-react-jsx-self
Add a __self prop to all JSX Elements
Last updated 4 years ago by hzoo .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-plugin-transform-react-jsx-self 
SYNC missed versions from official npm registry.

babel-plugin-transform-react-jsx-self

Adds __self prop to JSX elements, which React will use to generate some runtime warnings. All React users should enable this transform in dev mode.

Example

###In

<sometag />

###Out

<sometag __self={this} />

Installation

$ npm install babel-plugin-transform-react-jsx-self

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-react-jsx-self"]
}

Via CLI

$ babel --plugins transform-react-jsx-self script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-react-jsx-self"]
});

Current Tags

  • 6.22.0                                ...           latest (4 years ago)
  • 7.0.0-beta.3                                ...           next (3 years ago)

21 Versions

  • 7.0.0-beta.3                                ...           3 years ago
  • 7.0.0-beta.2                                ...           3 years ago
  • 7.0.0-beta.1                                ...           3 years ago
  • 7.0.0-beta.0                                ...           3 years ago
  • 7.0.0-alpha.20                                ...           3 years ago
  • 7.0.0-alpha.19                                ...           3 years ago
  • 7.0.0-alpha.18                                ...           3 years ago
  • 7.0.0-alpha.17                                ...           3 years ago
  • 7.0.0-alpha.16                                ...           3 years ago
  • 7.0.0-alpha.15                                ...           3 years ago
  • 7.0.0-alpha.14                                ...           3 years ago
  • 7.0.0-alpha.12                                ...           3 years ago
  • 7.0.0-alpha.11                                ...           3 years ago
  • 7.0.0-alpha.10                                ...           3 years ago
  • 7.0.0-alpha.9                                ...           3 years ago
  • 7.0.0-alpha.8                                ...           3 years ago
  • 7.0.0-alpha.7                                ...           3 years ago
  • 7.0.0-alpha.3                                ...           3 years ago
  • 7.0.0-alpha.1                                ...           3 years ago
  • 6.22.0                                ...           4 years ago
  • 6.11.0                                ...           4 years ago
Downloads
Today 2,295
This Week 2,295
This Month 18,459
Last Day 535
Last Week 14,967
Last Month 67,084
Dependencies (2)
Dev Dependencies (1)
Dependents (239)

Copyright 2014 - 2016 © taobao.org |