Init frontend and backend projects

This commit is contained in:
Stedoss
2022-10-28 17:10:30 +01:00
commit 9be22da974
20 changed files with 3434 additions and 0 deletions

View File

View File

@@ -0,0 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import './index.css';
import { Index } from './pages';
const router = createBrowserRouter([
{
path: "/",
element: <Index/>
},
]);
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<RouterProvider router={router} />
</React.StrictMode>
)

View File

@@ -0,0 +1,3 @@
export function Index() {
return(<div>Hello, index!</div>);
};

View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />