Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@alita/babel-transform-jsx-class
Advanced tools
Support classnames with directive.
In
import { createElement } from 'react';
export default function Foo(props) {
const { message } = props;
return (
<div x-class={['foo', {
bar: true,
active: false,
}]}>hello world</div>
);
}
Out
import { createElement } from 'react';
export default function Foo(props) {
const { message } = props;
return (
<div className={classnames(['foo', {
bar: true,
active: false,
}])}>hello world</div>
);
}
$ npm install babel-plugin-transform-jsx-class
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-jsx-class"]
}
$ babel --plugins transform-jsx-class script.js
require("babel-core").transform("code", {
plugins: ["transform-jsx-class"]
});
FAQs
Support classnames with directive.
The npm package @alita/babel-transform-jsx-class receives a total of 5,033 weekly downloads. As such, @alita/babel-transform-jsx-class popularity was classified as popular.
We found that @alita/babel-transform-jsx-class demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.