I have a component and multiple style files as styles1.css, styles2.css,
and styles3.css
.
(我有一个组件和多个样式文件,如styles1.css, styles2.css,
和styles3.css
。)
I want to use them conditionally.(我想有条件地使用它们。)
Like for user1 I want to load styles1.css
for user2 it should load styles2.css
and so on.(像user1一样,我想为user2加载styles1.css
,它应该加载styles2.css
,依此类推。)
I tried loading i using require
but no luck.
(我尝试使用require
加载但没有运气。)
Your help will be highly appreciated.
(非常感谢您的帮助。)
ask by Saurabh Agrawal translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…