-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

React Interview Guide
By :

We can build websites with CSS in two distinct ways—by using CSS processors and CSS Modules. CSS processors have been around for quite a long time and were designed to be an improvement over traditional CSS. They gave us access to nesting our CSS code and the code compiled to regular CSS. CSS Modules, on the other hand, give us scoped CSS code in our files, which is better for avoiding name conflicts. Let’s now learn about them both, starting with CSS processors.
CSS processors, commonly referred to as CSS preprocessors, are tools that add extra features to CSS, such as variables, mixins, and nesting rules. They enable you to write in less repetitive and modular ways that are easier to maintain. Sass, also known as SCSS, Less, and Stylus are the three CSS preprocessors that are most widely used. To translate the improved CSS syntax into conventional CSS that web browsers can understand, these preprocessors...