- Updated `generateUUID` function for improved readability and performance. - Deleted `logger.ts`, `other.ts`, `request.ts`, `storage.ts`, `tansParams.ts`, and `validate.ts` as they were no longer needed. - Simplified TypeScript configuration by removing unnecessary paths and aliases. - Enhanced Vite configuration for better project structure and maintainability.
17 lines
349 B
TypeScript
17 lines
349 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from './App';
|
|
import './styles.css';
|
|
|
|
const container = document.getElementById('app');
|
|
|
|
if (!container) {
|
|
throw new Error('Missing #app container for React entry.');
|
|
}
|
|
|
|
ReactDOM.createRoot(container).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
);
|