babel-plugin-react-transform weekly downloads statistics
By gaearon · npm · Babel plugins
Babel plugin to instrument React components with custom transforms
babel-plugin-react-transform has 164,019 recorded weekly downloads on npm, a decrease of 12.5% over the past 30 days, ranking #561 of 3,247 tracked listings.
About babel-plugin-react-transform
This Project Is Deprecated
React Hot Loader 3 is on the horizon, and you can try it today (boilerplate branch, upgrade example). It fixes some long-standing issues with both React Hot Loader and React Transform, and is intended as a replacement for both. The docs are not there yet, but they will be added before the final release. For now, this commit is a good reference.
babel-plugin-react-transform
:rocket: Now with Babel 6 support (thank you @thejameskyle!)
This plugin wraps React components with arbitrary transforms. In other words, it allows you to instrument React components in any way—limited only by your imagination.
🚧🚧🚧🚧🚧
This is highly experimental tech. If you’re enthusiastic about hot reloading, by all means, give it a try, but don’t bet your project on it. Either of the technologies it relies upon may change drastically or get deprecated any day. You’ve been warned 😉 .
This technology exists to prototype next-generation React developer experience. Please don’t use it blindly if you don’t know the underlying technologies well. Otherwise you are likely to get disillusioned with JavaScript tooling.
No effort went into making this user-friendly yet. The goal is to eventually kill this technology in favor of less hacky technologies baked into React. These projects are not long term.
Table of Contents
Ecosystem
For a reference implementation, see react-transform-boilerplate.
For a starter kit to help write your own transforms, see react-transform-noop.
Transforms
- react-transform-hmr - enables hot reloading using HMR API
- react-transform-catch-errors - catches errors inside
render() - react-transform-debug-inspector - renders an inline prop inspector
- react-transform-render-visualizer - highlight components when updated
- react-transform-style - support
styleandclassNamestyling for all components - react-transform-log-render - log component renders with passed props and state
- react-transform-count-renders - counts how many times your components render
Feeling inspired? Learn how to write transforms and send a PR!
Demo Project
Check out react-transform-boilerplate for a demo showing a combination of transforms.

Installation
This plugin is designed to be used with the Babel 6 ecosystem. These instructions assume you have a working project set up. If you do not have Babel set up in your project, learn how to integrate it with your toolkit before installing this plugin.
Using NPM
Install plugin and save in devDependencies:
npm install --save-dev babel-plugin-react-transform
Install some transforms:
npm install --save-dev react-transform-hmr
npm install --save-dev react-transform-catch-errors
Configuration
Add react-transform to the list of plugins in your babel configuration (usually .babelrc):
{
"presets": ["react", "es2015"],
"env": {
// this plugin will be included only in development mode, e.g.
// if NODE_ENV (or BABEL_ENV) environment variable is not set
// or is equal to "development"
"development": {
"plugins": [
// must be an array with options object as second item
["react-transform", {
// must be an array of objects
"transforms": [{
// can be an NPM module name or a local path
"transform": "react-transform-hmr",
// see transform docs for "imports" and "locals" dependencies
"imports": ["react"],
"locals": ["module"]
}, {
// you can have many transforms, not just one
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}, {
// can be an NPM module name or a local path
"transform": "./src/my-custom-transform"
}]
// by default we only look for `React.createClass` (and ES6 classes)
// but you can tell the plugin to look for different component factories:
// factoryMethods: ["React.createClass", "createClass"]
}]
]
}
}
}
```…
Description from the npm listing.
- babel-plugin
- react-transform
- instrumentation
- dx
- react
- reactjs
- components
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Babel plugins plugins
All 20 babel-plugin-react-transform alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/babel-plugin-react-transform. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.