From the course: React in Action: From Setup to Deployment
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Using CSS with React - React.js Tutorial
From the course: React in Action: From Setup to Deployment
Using CSS with React
- [Instructor] Just like there are many ways to work with SVG images, you can include CSS within React in a variety of different ways. I'm using the Pico CSS library for this course. So if you go to the documentation, you can see the different ways that you can install the library. And you can use any of these with any library in React. I installed Pico using an NPM install, just like this. But you can also include it with things like SaaS, or just directly into your HTML page. You can see where I import the files, right here, in my app.jsx. And I'm importing the main library, as well as the colors library. These two happen to be in the node_modules folder. So if I go here, I can find the Pico CSS library here. And I don't have to put node modules in here, but you could see that everything's under the Pico folder, and then the CSS subfolder, and that's where most of these libraries live. I also mentioned that when you're working with Tabler Icons, you can include things like the code…