Initialize React app using create-vite

This commit is contained in:
Stephan
2022-09-29 20:32:27 +02:00
parent 0d149fdbcc
commit 227696e83b
10 changed files with 106 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
+10
View File
@@ -0,0 +1,10 @@
import { useState } from "react";
import "./App.css";
function App() {
const [count, setCount] = useState(0);
return <div className="App">Cool, now please start the storybook instead.</div>;
}
export default App;
+7
View File
@@ -0,0 +1,7 @@
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
+10
View File
@@ -0,0 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
+1
View File
@@ -0,0 +1 @@
/// <reference types="vite/client" />