mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 18:16:08 +00:00
- Added ESLint, Prettier, TypeScript strict mode to ui/ directory - Fixed 40+ lint/format issues across ui codebase - Created extraction files for react-refresh compliance: - button-variants.ts for Button component styles - use-sidebar.ts, use-websocket-context.ts custom hooks - ws-context.ts WebSocket context provider - Fixed React hooks issues (setState ordering, dependency arrays) - Added ui:validate script to enforce quality checks - Updated husky pre-commit to validate UI files on change
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
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('Root element not found. Failed to mount React application.');
|
|
}
|
|
createRoot(rootElement).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>
|
|
);
|