In my current project using React JS, I found the need to incorporate Bootstrap in certain pages. To do this, I initially placed the following code snippet in the Public folder within index.html:
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
However, this caused Bootstrap styling to be applied to all pages and changed the fontFamily. Now, I am seeking a way to apply Bootstrap only to a specific React JS file.
Does anyone know how I can import
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
into a single React JS file?
Thank you for any assistance provided.