import React from 'react';
import { createRoot, Root } from 'react-dom/client';

import App from './App';
import { AppStateProvider } from './context/user.data.context';

import './style/tailwind.css';
import './style/main.scss';

const mountNode: HTMLElement = document.getElementById(
  'recomaze'
) as HTMLElement;

const root: Root = createRoot(mountNode);

root.render(
  <React.StrictMode>
    <AppStateProvider>
      <App />
    </AppStateProvider>
  </React.StrictMode>
);
