import './service-worker'
import React from 'react';
import {createRoot} from 'react-dom/client';
import { BrowserRouter as Router } from 'react-router-dom';
import './index.css'
import './toast'
import App from './app';
if (!localStorage.getItem('device_id')) {
  localStorage.setItem('device_id', Date.now().toString() + Math.random().toString())
}
const root = document.createElement('div')
root.id = 'root'
document.body.appendChild(root)
createRoot(root).render(
  <React.StrictMode>
    <Router>
      <App />
    </Router>
  </React.StrictMode>
);