Skip to content

Commit 2fc4535

Browse files
committed
add README
1 parent 8392771 commit 2fc4535

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
1-
# React + TypeScript + Vite
1+
# 112-1-unit1-todo-react
22

3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3+
## Run the app
44

5-
Currently, two official plugins are available:
5+
1. Install dependencies
66

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-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:
7+
```bash
8+
yarn install
9+
```
1310

14-
- Configure the top-level `parserOptions` property like this:
11+
2. Run the app
1512

16-
```js
17-
parserOptions: {
18-
ecmaVersion: 'latest',
19-
sourceType: 'module',
20-
project: ['./tsconfig.json', './tsconfig.node.json'],
21-
tsconfigRootDir: __dirname,
22-
},
13+
```bash
14+
yarn start
2315
```
2416

25-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
26-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
27-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
17+
3. Open the app
18+
19+
Visit [http://localhost:5173](http://localhost:5173) to view it in the browser.

0 commit comments

Comments
 (0)