Skip to content

Commit 16045a8

Browse files
author
huangchangjun
committed
add: hook
1 parent bc748b0 commit 16045a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/_posts/我想学前端React.md

+11
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ export default function App() {
5252
}
5353
```
5454

55+
### 井字棋项目
56+
57+
#### 构建思路
58+
59+
- 构建棋盘
60+
- props传递参数
61+
- useState记录点击的状态
62+
- 交替放置“X”和“O” , 初始化: Array(9).fill(null)
63+
- 获胜规则
64+
- 时间旅行,历史记录
65+
5566
### 相关的链接
5667

5768
next.js 是 react 的框架, 自带路由、认证等功能;

0 commit comments

Comments
 (0)