basic react package build config

This commit is contained in:
Felix Roos 2022-05-17 00:32:57 +02:00
parent 2a618b42b7
commit b59f36f40b
16 changed files with 620 additions and 163 deletions

View file

@ -1,47 +1,13 @@
import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
import MiniRepl from './components/MiniRepl'
import React from 'react';
import MiniRepl from './components/MiniRepl';
import 'tailwindcss/tailwind.css';
function App() {
const [count, setCount] = useState(0)
return (
<div className="App">
<MiniRepl tune={`"c3"`}/>
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>Hello Vite + React!</p>
<p>
<button type="button" onClick={() => setCount((count) => count + 1)}>
count is: {count}
</button>
</p>
<p>
Edit <code>App.jsx</code> and save to test HMR updates.
</p>
<p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
{' | '}
<a
className="App-link"
href="https://vitejs.dev/guide/features.html"
target="_blank"
rel="noopener noreferrer"
>
Vite Docs
</a>
</p>
</header>
<div>
<MiniRepl tune={`"c3"`} />
</div>
)
);
}
export default App
export default App;