| 10 |
10 |
|
return c.text('Hello Hono!') |
| 15 |
15 |
|
const data: ApiResponse = { |
| 20 |
20 |
|
return c.json(data, { status: 200 }) |
| 26 |
26 |
|
export const tailwindTemplate = `import { useState } from 'react' |
| 33 |
33 |
|
type ResponseType = Awaited<ReturnType<typeof client.hello.$get>>; |
| 35 |
36 |
|
const client = hc<AppType>(SERVER_URL); |
| 91 |
92 |
|
export const shadcnTemplate = `import { useState } from 'react' |
| 92 |
93 |
|
import beaver from './assets/beaver.svg' |
| 97 |
98 |
|
const SERVER_URL = import.meta.env.VITE_SERVER_URL || "http://localhost:3000" |
| 99 |
101 |
|
const client = hc<AppType>(SERVER_URL); |
| 101 |
103 |
|
type ResponseType = Awaited<ReturnType<typeof client.hello.$get>>; |
| 167 |
169 |
|
const SERVER_URL = import.meta.env.VITE_SERVER_URL || "http://localhost:3000" |
| 169 |
172 |
|
const client = hc<AppType>(SERVER_URL); |
| 171 |
174 |
|
type ResponseType = Awaited<ReturnType<typeof client.hello.$get>>; |