build: install and configure Vite, move index.html

This commit is contained in:
Daniel D Orlando 2023-04-01 12:58:49 -07:00
parent 78dabe55ae
commit 6498ab79a4
7 changed files with 2271 additions and 11 deletions

21
client/src/main.jsx Normal file
View file

@ -0,0 +1,21 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
// import { Provider } from 'react-redux';
// import { store } from './src/store';
import { RecoilRoot } from 'recoil';
import { ThemeProvider } from './hooks/ThemeContext';
import App from './App';
import './style.css';
import './mobile.css';
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<RecoilRoot>
<ThemeProvider>
<App />
</ThemeProvider>
</RecoilRoot>
);