- Added react-router-dom to package.json and pnpm-lock.yaml. - Created a new Layout component to manage sidebar and main content. - Implemented AppRouter for defining application routes and redirection logic.
11 lines
244 B
TypeScript
11 lines
244 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import './index.css'
|
|
import { AppRouter } from './router'
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<AppRouter />
|
|
</StrictMode>
|
|
)
|