import { Welcome, createBoltClient } from "@rapid-web/react"; import { routes, Handlers } from "../pages/api/bindings"; const bolt = createBoltClient(routes, { transport: "http://localhost:8080", }); export default async function Home() { const { data: title } = await bolt("hello").get(routes.hello); const { data: message } = await bolt("echo").post( routes.echo, "Hello from the client!" ); return (

{title}

The server replied: {message}
); }