chore: Fix demo lint

This commit is contained in:
zombiej 2019-10-16 10:46:33 +08:00
parent c75bbbd13d
commit 5229d69bdc

View File

@ -122,17 +122,13 @@ class AliyunOSSUpload extends React.Component {
}
}
class FormPage extends React.Component {
render() {
return (
<Form labelCol={{ span: 4 }}>
<Form.Item label="Photos" name="photos">
<AliyunOSSUpload />
</Form.Item>
</Form>
);
}
}
const FormPage = () => (
<Form labelCol={{ span: 4 }}>
<Form.Item label="Photos" name="photos">
<AliyunOSSUpload />
</Form.Item>
</Form>
);
ReactDOM.render(<FormPage />, mountNode);
```