Skip to content

Commit ea29e88

Browse files
committed
更新
1 parent 1b9ccb5 commit ea29e88

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## yarn start
1+
## yarn/ npm install 安装依赖
22

3-
### 启动项目
3+
### yarn start / npm run start 启动项目
44

5-
## eslint airbnb + prettierrc, vsCode 需要安装 editoreConfig 插件
5+
## vsCode 需要安装 editoreConfig 插件

src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React from "react";
2+
import style from "./index.module.css";
23

34
function App() {
45
return (
56
<div className="App">
67
<h1>This is React App.</h1>
8+
<h2 className={style.pink_color}>引入css</h2>
9+
<h3 className="title">index.module.css里定义的全局样式</h3>
710
</div>
811
);
912
}

src/index.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.pink_color {
2+
color: pink;
3+
}
4+
5+
:global(.title) {
6+
background-color: green;
7+
}

0 commit comments

Comments
 (0)