-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
little_yu
committed
Jun 6, 2024
1 parent
da98035
commit 9223c9f
Showing
15 changed files
with
4,723 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# todo List | ||
|
||
### 说明 | ||
|
||
使用工具 `react` + `javascript` + `vite` | ||
|
||
使用 `vite` 创建一个react项目,比react脚手架 `create-react-app`创建更快,可选方案更灵活; | ||
|
||
`vite` 创建命令 `npm create vite@latest`; | ||
|
||
### 运行截图 | ||
|
||
![](C:\Users\33215\Desktop\todolist.gif) | ||
|
||
|
||
|
||
### 项目说明 | ||
|
||
+ 该项目主要采用类式组件; | ||
|
||
+ 父子组件的通信方式,采用状态升级,即将通用数据放到`App`父组件的 `state` 中; | ||
|
||
|
||
|
||
### 参考资料 | ||
|
||
+ [056_尚硅谷_react教程_TodoList案例_bilibili](https://www.bilibili.com/video/BV1wy4y1D7JT?p=56&spm_id_from=pageDriver&vd_source=c7a17b24f0b5a70e4b025703870eec19) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Todo List</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.