chore: Updated typscript template
00d0aacd
1 file(s) · +5 −14
| 29 | 29 | <h1 className="text-5xl font-black">bhvr</h1> |
|
| 30 | 30 | <h2 className="text-2xl font-bold">Bun + Hono + Vite + React</h2> |
|
| 31 | 31 | <p>A typesafe fullstack monorepo</p> |
|
| 32 | + | <div className='flex items-center gap-4'> |
|
| 32 | 33 | <button |
|
| 33 | 34 | onClick={sendRequest} |
|
| 34 | 35 | className="bg-black text-white px-2.5 py-1.5 rounded-md" |
|
| 35 | 36 | > |
|
| 36 | 37 | Call API |
|
| 37 | 38 | </button> |
|
| 39 | + | <a target='_blank' href="https://bhvr.dev" className='border-1 border-black text-black px-2.5 py-1.5 rounded-md'> |
|
| 40 | + | Docs |
|
| 41 | + | </a> |
|
| 42 | + | </div> |
|
| 38 | 43 | {data && ( |
|
| 39 | 44 | <pre className="bg-gray-100 p-4 rounded-md"> |
|
| 40 | 45 | <code> |
|
| 43 | 48 | </code> |
|
| 44 | 49 | </pre> |
|
| 45 | 50 | )} |
|
| 46 | - | <pre className="bg-gray-100 p-4 rounded-md"> |
|
| 47 | - | <code> |
|
| 48 | - | {`. |
|
| 49 | - | ├── client/ # React frontend |
|
| 50 | - | ├── server/ # Hono backend |
|
| 51 | - | ├── shared/ # Shared TypeScript definitions |
|
| 52 | - | │ └── src/types/ # Type definitions used by both client and server |
|
| 53 | - | └── package.json # Root package.json with workspaces |
|
| 54 | - | `} |
|
| 55 | - | </code> |
|
| 56 | - | </pre> |
|
| 57 | - | <p className="text-gray-600"> |
|
| 58 | - | Click the beaver to learn more |
|
| 59 | - | </p> |
|
| 60 | 51 | </div> |
|
| 61 | 52 | ) |
|
| 62 | 53 | } |
|