π Intro
This will be simple blog that covers how to add styles to React applications with CSS. Since Iβve learned it before plus more about Tailwind CSS, integrating Tailwind CSS with React and how to use it to style React components would be interesting to cover in the future blogs.
π¨βπ» Reviewed concepts
- CSS:
CSS stands for Cascading Style Sheets. It is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. [More details](https://dogecat0.github.io/2023/11/07/JavaScript Full Stack Series/01-Fundamentals.html)
π Lessons learned
The use of className
in React:
In React, the class
attribute is reserved for JavaScript classes. Instead, we use className
to define the CSS class of an element.
π Course exercise
- Created a simple React application that displays countriesβ info with its capitalβs weather details plus search funtionalities. Link to the repo