App.tsx
import MainPage from './page/MainPage';
import './App.less';
function App() {
return (
<>
<MainPage />
</>
);
}
export default App;
Main.tsx
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.less';
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>
);