작성
·
340
0
import React from 'react';
import { Form, Input, Button, List, Card, Icon } from 'antd';
const profile = () =>
{
return(
<div>
<Form style={{ marginBottom: '20px', border: '1px solid #d9d9d9', padding: '20px' }}>
<Input addonBefore="닉네임" />
<Button type="primary">수정</Button>
</Form>
<List
style={{marginBottom: '20px'}}
grid={{gutter: 4, xs: 2,md: 3}}
size="small"
header={<div>팔로워 목록</div>}
loadMore={<Button style={{width: '100%'}}>더 보기</Button>}
bordered
dataSource={['제로초', '바보','노드버드오피셜']}
rednerItem={item=>(
<List.Item style={{marginTop: '20px'}}>
<Card actions={[<Icon type="stop" />]}>
<Card.Meta description={item} />
</Card>
</List.Item>
)}
/>
</div>
)
}
export default profile;
해결방법좀 알려주세요.
답변 7
1
0
0
0
0
antd를 node_modules에서 꺼내오지 마시고, cdn을 사용하세요. https://cdnjs.cloudflare.com/ajax/libs/antd/3.25.3/antd.js
0
index.js:1 Fetch API cannot load file:///C:/Users/user/Desktop/NodeBird/ch1/front/node_modules/antd/lib/list/index.js. URL scheme must be "http" or "https" for CORS request.
이러한 오류가 떠요.
0