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.
npm install babel-plugin-jsx-wrap-ifVerified import paths — ran on the pinned version, not inferred.
Shows how to configure the Babel plugin and use the wrap-if prop in JSX for conditional rendering.
Consider using inline ternary or a conditional wrapper component instead.
Run 'npm install babel-plugin-jsx-wrap-if --save-dev' and verify plugin string is 'jsx-wrap-if'.
No dependency data recorded yet.