基础环境
查看node的安装路径
where node
创建react项目
npx create-react-app blog
yarn安装
yarn install
sass
npm install node-sass --save
*.scss
import './style.scss'
body {
background-color: red;
}
import style from './style.module.scss'
.app {
background-color: white;
}
<div className={style.app}>
<h1>hello world</h1>
</div>
normalize.css
npm install normalize.css --save