complete init

This commit is contained in:
wxhao
2025-10-31 15:12:57 +08:00
parent 43534e3ef4
commit 2ef5c6b3f5
16 changed files with 2424 additions and 119 deletions

14
index.tsx Normal file
View File

@@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './src/App';
// 使用React 18+的createRoot API
const rootElement = document.getElementById('root');
if (rootElement) {
const root = ReactDOM.createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
}