File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { CacheProvider } from "@emotion/react" ;
2
2
import { RemixBrowser } from "@remix-run/react" ;
3
3
import * as React from "react" ;
4
- import { hydrate } from "react-dom" ;
4
+ import { hydrateRoot } from "react-dom/client " ;
5
5
6
6
import ClientStyleContext from "~/styles/client.context" ;
7
7
import createEmotionCache from "~/styles/createEmotionCache" ;
@@ -24,9 +24,9 @@ function ClientCacheProvider({ children }: ClientCacheProviderProps) {
24
24
) ;
25
25
}
26
26
27
- hydrate (
27
+ hydrateRoot (
28
+ document ,
28
29
< ClientCacheProvider >
29
30
< RemixBrowser />
30
31
</ ClientCacheProvider > ,
31
- document ,
32
32
) ;
Original file line number Diff line number Diff line change 15
15
"@remix-run/node" : " ~1.14.2" ,
16
16
"@remix-run/react" : " ~1.14.2" ,
17
17
"@remix-run/serve" : " ~1.14.2" ,
18
- "react" : " ^17.0.2 " ,
19
- "react-dom" : " ^17.0.2 "
18
+ "react" : " ^18.2.0 " ,
19
+ "react-dom" : " ^18.2.0 "
20
20
},
21
21
"devDependencies" : {
22
22
"@remix-run/dev" : " ~1.14.2" ,
23
23
"@remix-run/eslint-config" : " ~1.14.2" ,
24
- "@types/react" : " ^17.0.39 " ,
25
- "@types/react-dom" : " ^17.0.13 " ,
24
+ "@types/react" : " ^18.2.14 " ,
25
+ "@types/react-dom" : " ^18.2.6 " ,
26
26
"eslint" : " ^8.27.0" ,
27
27
"typescript" : " ^4.8.4"
28
28
},
You can’t perform that action at this time.
0 commit comments