Ant Design V5 - Removed Component Migration

Replace import for removed component in v5.

Ant Design
jscodeshift
Estimated time saving
Up to 1 minutes/occurrence
Change mode
Assistive
Applicability criteria

Ant Design >= 5.0.0

Made by
Ant Design
Ant Design

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod antd/5/removed-component-migration
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

Replace import for removed component in v5.

Before

import { Avatar, BackTop, Comment, PageHeader } from 'antd';

After

import { Comment } from '@ant-design/compatible'; import { PageHeader } from '@ant-design/pro-layout'; import { Avatar, FloatButton } from 'antd';