Skip to content
PluginStats

babel-plugin-transform-react-constant-elements weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

Treat React JSX elements as value types and hoist them to the highest scope

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-react-constant-elements has 130,148 recorded weekly downloads on npm, a decrease of 20.0% over the past 30 days, ranking #601 of 3,247 tracked listings.

Weekly downloads
130,148
Official API · Dec 5, 2026
7-day growth
+1.1%
+1.4K weekly downloads
30-day growth
-20.0%
-32.5K weekly downloads
90-day growth
+12.9%
+14.8K weekly downloads
Rank
#601
▼ 21 in 7 days

About babel-plugin-transform-react-constant-elements

babel-plugin-transform-react-constant-elements

Treat React JSX elements as value types and hoist them to the highest scope

Example

In

const Hr = () => {
  return <hr className="hr" />;
};

Out

const _ref = <hr className="hr" />;

const Hr = () => {
  return _ref;
};

Deopts

  • Spread Operator

    <div {...foobar} />
    
  • Refs

    <div ref="foobar" />
    <div ref={node => this.node = node} />
    

Installation

npm install --save-dev babel-plugin-transform-react-constant-elements

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-react-constant-elements"]
}
Via CLI
babel --plugins transform-react-constant-elements script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["transform-react-constant-elements"]
});

References

Description from the npm listing.

  • babel-plugin

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

babel-plugin-transform-react-constant-elements weekly downloads on npm, last 90 days: 130,148 weekly downloads as of Dec 5, 2026, +12.9% over 90 days.babel-plugin-transform-react-constant-…Weekly downloads on npm · Last 90 days130,148downloads / week+12.9% over 90 days050K100K150K200K250K300K350KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
babel-plugin-transform-react-constant-elements weekly downloads on npm, last 90 days: 130,148 weekly downloads as of Dec 5, 2026, +12.9% over 90 days.

7/30/90-day growth

babel-plugin-transform-react-constant-elements weekly downloads growth on npm: +1.1% over 7 days, -20.0% over 30 days, +12.9% over 90 days.babel-plugin-transform-react-constant-…Weekly downloads growth on npm130,148downloads / week now7-day growth+1,387 weekly downloads+1.1%30-day growth-32,506 weekly downloads-20.0%90-day growth+14,840 weekly downloads+12.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-react-constant-elements weekly downloads growth on npm: +1.1% over 7 days, -20.0% over 30 days, +12.9% over 90 days.

Ranking history

babel-plugin-transform-react-constant-elements npm ranking history: currently #601 (by weekly downloads).babel-plugin-transform-react-constant-…npm ranking · by weekly downloads · Last 90 days#601current rank#500#520#540#560#580#600#620Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-react-constant-elements npm ranking history: currently #601 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 31, #1 (overall #601)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins263 listings · 14 pages · page 12, #18 (overall #238)
Babel plugins: every listing in weekly downloads order

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)
Recent weekly downloads observations for babel-plugin-transform-react-constant-elements
Date (UTC)Weekly downloadsChange vs. previous
130,148-532
130,680+5.3K
125,414+6.3K
119,096-403
119,499-548
120,047-7K
127,048-1.7K
128,761-818
129,579-391
129,970-7.9K
137,893-3.3K
141,185-3.9K
145,051+5.9K
139,197—

Data 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-transform-react-constant-elements. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.