File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 33
33
},
34
34
"dependencies" : {
35
35
"@uiw/formatter" : " ~1.3.2" ,
36
+ "@uiw/react-back-to-top" : " ^1.2.0" ,
36
37
"@uiw/react-code-preview" : " ~4.0.5" ,
37
38
"@uiw/react-markdown-preview" : " ~3.5.0" ,
38
39
"@uiw/reset.css" : " ~1.0.5" ,
39
- "react" : " ~17.0.2 " ,
40
- "react-dom" : " ~17.0.2 " ,
40
+ "react" : " >=16.9.0 " ,
41
+ "react-dom" : " >=16.9.0 " ,
41
42
"react-router-dom" : " ~6.2.2" ,
42
43
"uiw" : " ^4.21.16"
43
44
},
Original file line number Diff line number Diff line change 1
1
import React , { useReducer } from 'react' ;
2
2
import ReactDOM from 'react-dom' ;
3
3
import { useRoutes , HashRouter } from 'react-router-dom' ;
4
+ import BackToUp from '@uiw/react-back-to-top' ;
4
5
import '@uiw/reset.css' ;
5
6
import { routes } from './routers' ;
6
7
import './styles/index.less' ;
@@ -14,6 +15,7 @@ export const Provider = ({ children }: { children: React.ReactNode }) => {
14
15
15
16
ReactDOM . render (
16
17
< HashRouter >
18
+ < BackToUp style = { { zIndex : 9999 } } > Top</ BackToUp >
17
19
< Provider >
18
20
< App />
19
21
</ Provider >
You can’t perform that action at this time.
0 commit comments