
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
babel-plugin-transform-jsx-slot
Advanced tools
Support Slot directive for JSX.
Usage In
<WaterFall>
<view x-slot:header>header</view>
<view x-slot:item="props">item: {props.item}</view>
<view x-slot:footer>footer</view>
</WaterFall>
Usage Out
<WaterFall
$slots={{
header: () => <view>header</view>,
item: props => <view>item: {props.item}</view>,
footer: () => <view>footer</view>
}}
></WaterFall>
Component In
<view>
<slot name="header" />
{arr.map(item => {
return <slot name="item" item={item} />;
})}
<slot name="footer" />
</view>
Component Out
<view>
<$slot name="header" $slots={$slots} />
{arr.map(item => {
return <$slot name="item" item={item} $slots={$slots} />;
})}
<$slot name="footer" $slots={$slots} />
</view>
$ npm install babel-plugin-transform-jsx-slot
.babelrc (Recommended).babelrc
{
"plugins": ["transform-jsx-slot"]
}
$ babel --plugins transform-jsx-slot script.js
require("babel-core").transform("code", {
plugins: ["transform-jsx-slot"]
});
FAQs
Support Slot directive for JSX.
The npm package babel-plugin-transform-jsx-slot receives a total of 1,245 weekly downloads. As such, babel-plugin-transform-jsx-slot popularity was classified as popular.
We found that babel-plugin-transform-jsx-slot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.