babel-plugin-jsx-wrap-if
JSON →Babel plugin for React that conditionally wraps JSX elements based on a prop. Version 0.1.1, no active maintenance. When the `wrap-if` prop is truthy, the element wraps its children; when falsy, the children are rendered without the wrapper. Simple alternative to inline ternaries or helper components. No updates since 2019, likely abandoned. Only 1 GitHub star. Use for legacy projects or simple conditional wrapping without extra components.
Traffic · last 30 days ↓50% vs prev 7d
total hits 22
actors 7 distinct systems
last hit 4d ago human
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇲🇽 Mexico
Resources
API endpoints
compatibility /v1/registry/babel-plugin-jsx-wrap-if/compatibility