Antd
migration
byCodemod

Antd/Props Changed

/icons/calendar.svg

Last update

Jul 24, 2024

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