styled components 에서 createGlobalStyle 을 이용해서 antd 에서 정의한 class 를 수정해준다.
이외 react-slick 등 외부 라이브러리 사용시 정의된 class 를 수정할 수도 있다.
import { createGlobalStyle } from 'styled-components';
const Global = createGlobalStyle`
.ant-row{
...
}
.slick-slide{
display: inline-block;
}
`;
'Programming > react' 카테고리의 다른 글
form value (0) | 2020.11.15 |
---|---|
project setting 시 (0) | 2020.11.15 |
Next>export (0) | 2020.10.26 |
Next>styling 할때 (0) | 2020.10.26 |
Next>antd 적용하기 (0) | 2020.10.25 |