20 lines
426 B
TypeScript
20 lines
426 B
TypeScript
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>
|
|
)
|
|
}
|