AlexGilleran/jsx-control-statements
Neater If and For for React JSX observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4213
- days_rel: n/a
- days_push: 1336
- n_releases_24m: 0
Adoption not part of the score
1621 stars · 60 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Babel plugin that adds component-like If, For, Choose, and With control statements to JSX, transforming them into plain JavaScript expressions at build time. It keeps React render functions readable without introducing runtime components.
Use cases
- write if/else conditionals in JSX without ternaries
- render lists in JSX with a for loop syntax
- clean up nested conditional rendering in React components
- migrate from Handlebars-style templating to React
- simplify switch-like rendering with Choose/When/Otherwise
When to choose
- you prefer declarative control-flow syntax over && and map in JSX
- your project uses Babel and plain JavaScript without TypeScript
- you want render functions that read like templating libraries
When to avoid
- you use TypeScript, Flow, or static analysis tools that may break on transformed code
- you want to stay on the well-supported path of plain JavaScript expressions
- your project no longer maintains a Babel build pipeline
Facets
plugin · maturity maintenance
templating build-tool frontend web-development browser react jsx babel-plugin conditionals loops nodejs
2 sources
- readme: https://github.com/AlexGilleran/jsx-control-statements · fetched 2026-08-28 · 31d4dfc51c6f
- registry_npm: https://registry.npmjs.org/jsx-control-statements · fetched 2026-08-29 · c781d45bd3ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| AlexGilleran/jsx-control-statements | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="AlexGilleran/jsx-control-statements")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem