Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
Antd
migration
byCodemod
Antd/Props Changed
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