babel-plugin-react-version
v0.1.2
Published
Babel plugin to build multi-version react components
Downloads
10
Readme
babel-plugin-react-version
This plugin transforms the following keywords to react version specific calls:
$RVfindDomNode
->require('react-dom').findDOMNode
orrequire('react').findDOMNode
$RVTransitionGroup
->require('react-addons-transition-group')
orrequire('react/addons').addons.TransitionGroup
$RVTestUtils
->require('react-addons-test-utils')
orrequire('react/addons').addons.TestUtils
$RVRenderer
->require('react-dom')
orrequire('react')