Use SASS in React js
Use SASS in React js
Manish Mandal
·
Follow
·
152
Why Sass?
$main-color: #444
h2 {
color:$main-color
header{
background-color:$main-color
}
@mixin default-type {
padding: 20px;
font-size: 16px;
font-weight:bold;
p {
@include default-type;
article{
@include default-type;
header{
background-color: #000;
p{
font-size:12px;
font-weight: bold;
organized.
How to use in React js?
project.
file.
there.
official documentation.
Here are the live code and GitHub repository for your
reference.