File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import ReactDOM from 'react-dom/client ' ;
2
+ import ReactDOM from 'react-dom' ;
3
3
import App from './App' ;
4
4
5
- const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) ;
6
- root . render (
7
- < React . StrictMode >
8
- < App basename = { '/' } />
9
- </ React . StrictMode > ,
10
- ) ;
5
+ const rootNode = document . getElementById ( 'root' ) ;
6
+ ReactDOM . render ( < App basename = { '/' } /> , rootNode ) ;
Original file line number Diff line number Diff line change
1
+ import { createApp } from 'vue' ;
2
+ import App from './App.vue' ;
3
+ import './index.css' ;
4
+ import router from './router' ;
5
+
6
+ const app = createApp ( App ) ;
7
+
8
+ app . use ( router ) ;
9
+
10
+ app . mount ( '#root' ) ;
Original file line number Diff line number Diff line change 1
- import { createApp } from 'vue' ;
2
- import App from './App.vue' ;
3
- import './index.css' ;
4
- import router from './router' ;
5
-
6
- const app = createApp ( App ) ;
7
-
8
- app . use ( router ) ;
9
-
10
- app . mount ( '#root' ) ;
1
+ import ( './bootstrap' ) ;
You can’t perform that action at this time.
0 commit comments