add minimal module4 control example

This commit is contained in:
2026-09-17 06:56:07 +03:00
parent 41c642365a
commit 5f961b3852
2 changed files with 52 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
export default function App() {
function forward() {
fetch("http://localhost:8000/api/forward", {
method: "POST"
})
}
return (
<main className="grid min-h-screen place-items-center bg-zinc-950">
<button
className="border border-zinc-600 bg-zinc-900 px-8 py-4 text-lg text-white hover:bg-zinc-800"
onClick={forward}
>
Вперёд
</button>
</main>
)
}