We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9ccb5 commit ea29e88Copy full SHA for ea29e88
README.md
@@ -1,5 +1,5 @@
1
-## yarn start
+## yarn/ npm install 安装依赖
2
3
-### 启动项目
+### yarn start / npm run start 启动项目
4
5
-## eslint airbnb + prettierrc, vsCode 需要安装 editoreConfig 插件
+## vsCode 需要安装 editoreConfig 插件
src/App.js
@@ -1,9 +1,12 @@
import React from "react";
+import style from "./index.module.css";
function App() {
return (
6
<div className="App">
7
<h1>This is React App.</h1>
8
+ <h2 className={style.pink_color}>引入css</h2>
9
+ <h3 className="title">index.module.css里定义的全局样式</h3>
10
</div>
11
);
12
}
src/index.module.css
@@ -0,0 +1,7 @@
+.pink_color {
+ color: pink;
+}
+
+:global(.title) {
+ background-color: green;
0 commit comments