Answer the question
In order to leave comments, you need to log in
React router: how to apply different style files to different pages?
Good afternoon, dear ones.
Faced the following problem. I need to abandon bootstrap.css on some pages of the project (the library is connected via npm).
How can I do it?
I tried to remove the line from app.js (project root)
import Bootstrap from 'bootstrap/dist/css/bootstrap.css';
into individual components where needed. But where it is not needed, it was still used.
Answer the question
In order to leave comments, you need to log in
But where it is not needed, it was still used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question