blob: 59365d37024f1a907f3e21bfcfbd67e1aa615b70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { StrictMode } from 'react';
import { hydrateRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { CookiesProvider } from 'react-cookie';
import './index.css';
import Juick from './App';
const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {};
const JuickApp = () => (
<StrictMode>
<CookiesProvider>
<BrowserRouter>
<Juick {...props} />
</BrowserRouter>
</CookiesProvider>
</StrictMode>
);
hydrateRoot(document.getElementById('app'), <JuickApp />);
|