babel-plugin-jsx-display-if
JSON →Babel plugin that adds an `display-if` attribute to JSX elements to conditionally render them, inspired by Angular's ng-if. v3.0.0 (latest) is a stable release with no active development. It transforms `<Comp display-if={condition} />` into `{condition && <Comp />}`, making conditional rendering more readable for non-developers. Compared to inline ternaries or helper functions, this plugin provides a declarative, template-like syntax. Only compatible with Babel 7+ and requires the JSX transform. Minimal footprint with no runtime dependencies.
Traffic · last 30 days ↑0% vs prev 7d
total hits 16
actors 5 distinct systems
last hit 22h ago AhrefsBot
top countries 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France
Resources
API endpoints
compatibility /v1/registry/babel-plugin-jsx-display-if/compatibility