How to switch scss/css file at runtime or switch theme in reactjs

Refresh

2 weeks ago

Views

7 time

0

I'm working on a multitheme website using reactjs and created .scss file for defferent theme scheme. I've googled for switch theme in react and mostaly suggested styled component but I dont't want to do this approach.

I have created context as well and switch .scss file on context value but doing .scss file import first import file changes applied only.

0 answers