File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react'
2
- import ReactDOM from 'react-dom/client'
3
- import App from './App.tsx'
4
- import './index.css'
5
- import { HashRouter } from 'react-router-dom'
1
+ // main.tsx
2
+ import React from 'react' ;
3
+ import ReactDOM from 'react-dom/client' ;
4
+ import App from './App' ;
5
+ import './index.css' ;
6
+ import { HashRouter } from 'react-router-dom' ;
7
+
6
8
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
9
< React . StrictMode >
8
10
< HashRouter >
9
- < App />
11
+ < App />
10
12
</ HashRouter >
11
13
</ React . StrictMode > ,
12
- )
14
+ ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ import { defineConfig } from 'vite';
3
3
import react from '@vitejs/plugin-react' ;
4
4
5
5
export default defineConfig ( {
6
- base : '/' , // Base URL for your project
7
6
plugins : [ react ( ) ] ,
8
7
} ) ;
You can’t perform that action at this time.
0 commit comments