Antd/Props Changed

1.0.1Last update Jul 24, 2024
by@Codemod
Antd
migration

This codemod changes the way the component props are applied.

Example

Before

import { Tag } from 'antd';
const Component = () => {
const [visible, setVisible] = useState(false);
return <Tag visible={visible} />;
};

After

import { Tag } from 'antd';
const Component = () => {
const [visible, setVisible] = useState(false);
return (visible ? <Tag /> : null);
};

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now