Skip to content

Commit c4f83be

Browse files
committed
docs: update README with project introduction and demo link
1 parent fa09177 commit c4f83be

File tree

1 file changed

+21
-57
lines changed

1 file changed

+21
-57
lines changed

README.md

Lines changed: 21 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,25 @@
1-
# React + TypeScript + Vite
2-
3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4-
5-
Currently, two official plugins are available:
6-
7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9-
10-
## Expanding the ESLint configuration
11-
12-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13-
14-
```js
15-
export default tseslint.config({
16-
extends: [
17-
// Remove ...tseslint.configs.recommended and replace with this
18-
...tseslint.configs.recommendedTypeChecked,
19-
// Alternatively, use this for stricter rules
20-
...tseslint.configs.strictTypeChecked,
21-
// Optionally, add this for stylistic rules
22-
...tseslint.configs.stylisticTypeChecked,
23-
],
24-
languageOptions: {
25-
// other options...
26-
parserOptions: {
27-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
28-
tsconfigRootDir: import.meta.dirname,
29-
},
30-
},
31-
})
32-
```
1+
# LeetCode 70 - Climbing Stairs
332

34-
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35-
36-
```js
37-
// eslint.config.js
38-
import reactX from 'eslint-plugin-react-x'
39-
import reactDom from 'eslint-plugin-react-dom'
40-
41-
export default tseslint.config({
42-
plugins: {
43-
// Add the react-x and react-dom plugins
44-
'react-x': reactX,
45-
'react-dom': reactDom,
46-
},
47-
rules: {
48-
// other rules...
49-
// Enable its recommended typescript rules
50-
...reactX.configs['recommended-typescript'].rules,
51-
...reactDom.configs.recommended.rules,
52-
},
53-
})
54-
```
3+
[在线演示 🔗](https://fuck-algorithm.github.io/leetcode-70-climbing-stairs/)
4+
5+
本项目基于 React + TypeScript + Vite 实现了 LeetCode 第70题 "爬楼梯" 的多种解法,并附带动画可视化演示。
6+
7+
## 在线演示
558

56-
# leetcode-70-climbing-stairs
9+
点击上方链接,即可直接在 GitHub Pages 查看项目效果。
5710

58-
在线演示 👉 [https://fuck-algorithm.github.io/leetcode-70-climbing-stairs/](https://fuck-algorithm.github.io/leetcode-70-climbing-stairs/)
11+
## 本地运行
5912

60-
本项目演示如何使用 React + TypeScript + Vite 实现"爬楼梯"算法。
61-
更多详情请查看 [GitHub 仓库](https://github.com/fuck-algorithm/leetcode-70-climbing-stairs)
13+
```bash
14+
git clone https://github.com/fuck-algorithm/leetcode-70-climbing-stairs.git
15+
cd leetcode-70-climbing-stairs
16+
npm install
17+
npm run dev
18+
```
19+
20+
## 构建与部署
21+
22+
```bash
23+
npm run build
24+
npm run deploy
25+
```

0 commit comments

Comments
 (0)