init: new react website base

This commit is contained in:
z / alex
2022-09-04 20:23:57 -04:00
parent 5433244f45
commit 4b412af60e
16 changed files with 28942 additions and 220 deletions
+25
View File
@@ -0,0 +1,25 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
// components/global styling
import { App } from './components/App';
import './styling/anims.css';
import './styling/main.css';
// "sitemap" for react components
export const pages = [
{
"display": "Home",
"path": "/",
"key": "home"
},
{
"display": "Contact",
"path": "/contact",
"key": "contact"
}
]
// react 18 compliance
const root = ReactDOM.createRoot(document.getElementById("root"))
root.render(<App d={pages} />)