开发者

React Suite (rsuitejs) CSS conflicts

开发者 https://www.devze.com 2022-12-07 22:46 出处:网络
(Beginner here) I have a react project created with create-react-app, in a module I am importing rsuite (v5) components and styles as following:

(Beginner here) I have a react project created with create-react-app, in a module I am importing rsuite (v5) components and styles as following:

import 'rsuite/dist/rsuite.min.css';
import { DateRangePicker, InputPicker } from 'rsuite';

but rsuite overrides my css globally.

I tried to import styles individually

import 'rsuite/DateRangePicker/styles/index.less';
import 'rsuite/InputPicker/styles/index.less';

but nothin开发者_运维问答g happens.

How can I prevent rsuite from overriding my css ?

0

精彩评论

暂无评论...
验证码 换一张
取 消