https://github.com/thorgate/babel-plugin-react-version
Babel plugin to build multi-version react components
https://github.com/thorgate/babel-plugin-react-version
Last synced: 9 months ago
JSON representation
Babel plugin to build multi-version react components
- Host: GitHub
- URL: https://github.com/thorgate/babel-plugin-react-version
- Owner: thorgate
- Created: 2016-02-17T01:50:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T12:35:37.000Z (almost 10 years ago)
- Last Synced: 2024-10-02T09:24:40.766Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-plugin-react-version
This plugin transforms the following keywords to react version
specific calls:
- `$RVfindDomNode` -> `require('react-dom').findDOMNode` or `require('react').findDOMNode`
- `$RVTransitionGroup` -> `require('react-addons-transition-group')` or `require('react/addons').addons.TransitionGroup`
- `$RVTestUtils` -> `require('react-addons-test-utils')` or `require('react/addons').addons.TestUtils`
- `$RVRenderer` -> `require('react-dom')` or `require('react')`