Template
feat: 初始化项目结构并添加基本配置
- 新增 Vite、React 和 TypeScript 的基础模板 - 添加 ESLint 和 Husky 进行代码检查和提交钩子 - 创建基本的 HTML、CSS 和 TypeScript 文件 - 配置 tsconfig 和 Vite 相关文件
This commit is contained in:
commit
e348e16170
20 files changed
+782
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./index.css";
|
||||
import App from "./App.tsx";
|
||||
|
||||
const rootElement = document.getElementById("root");
|
||||
if (!rootElement) {
|
||||
throw new Error("Failed to find the root element");
|
||||
}
|
||||
|
||||
createRoot(rootElement).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
Reference in new issue
Block a user