Spaces:
Running
Running
File size: 784 Bytes
f762ee5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import { useState } from 'react'
function App() {
const [count, setCount] = useState<number>(0)
return (
<div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
<div className="card w-96 bg-base-100 shadow-xl">
<div className="card-body">
<h2 className="card-title">Flask + React + Docker</h2>
<p>Simple proof of concept with Flask backend serving a React frontend.</p>
<div className="card-actions justify-center mt-4">
<button
className="btn btn-primary"
onClick={() => setCount((count: number) => count + 1)}
>
Count is {count}
</button>
</div>
</div>
</div>
</div>
)
}
export default App
|