Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a89c716

Browse files
committed
demo: add react vite demo
1 parent bd4cea0 commit a89c716

File tree

9 files changed

+2749
-0
lines changed

9 files changed

+2749
-0
lines changed

demos/with-react-vite/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>With React and Vite</title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/index.tsx"></script>
14+
</body>
15+
16+
</html>

demos/with-react-vite/package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "with-react-vite",
3+
"version": "0.1.0",
4+
"private": true,
5+
"author": "ShineShao <[email protected]>",
6+
"license": "MIT",
7+
"scripts": {
8+
"dev": "vite",
9+
"build": "tsc && vite build",
10+
"preview": "vite preview"
11+
},
12+
"dependencies": {
13+
"classnames": "^2.5.1",
14+
"ezuikit-js": "^8.0.3",
15+
"react": "^18.2.0",
16+
"react-dom": "^18.2.0"
17+
},
18+
"devDependencies": {
19+
"@types/node": "^20.12.4",
20+
"@types/react": "^18.2.75",
21+
"@types/react-dom": "^18.2.24",
22+
"@vitejs/plugin-legacy": "^5.3.2",
23+
"@vitejs/plugin-react-swc": "^3.6.0",
24+
"cross-env": "^7.0.3",
25+
"prettier": "^3.2.5",
26+
"pretty-quick": "^4.0.0",
27+
"terser": "^5.30.3",
28+
"typescript": "5.3.3",
29+
"vite": "^5.2.8"
30+
},
31+
"engines": {
32+
"node": ">=18"
33+
}
34+
}

0 commit comments

Comments
 (0)