# Ant Design Compatible [](https://npmjs.org/package/@ant-design/compatible) [](https://npmjs.org/package/@ant-design/compatible) [](https://circleci.com/gh/ant-design/compatible) ## Install ```bash yarn add @ant-design/compatible ``` ## Usage Helps you to compatible different components between v3 and v4. Follow Component are provided compatible version: - Form - Icon - Mention ```jsx import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; // If you need ``` ## Introduction ### Form Form of v3 api is different with v4: ```jsx // V3 import { Form, Input, Button } from 'antd'; class MyForm extends React.Component { render() { const { form } = this.props; return (
); } } export default Form.create()(MyForm); ``` Change to: ```jsx // V4 with compatible import { Form as LegacyForm } from '@ant-design/compatible'; import { Input, Button } from 'antd'; import '@ant-design/compatible/assets/index.css'; class MyForm extends React.Component { render() { const { form } = this.props; return (