Starter template with client-side React & Hono server
Example with client-side React & Hono server
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client?dev";
3import React, {
4 useEffect,
5 useMemo,
6 useRef,
7 useState,
8} from "https://esm.sh/react@18.2.0?dev";
9
10// Types
108 }
109 const set = new Set(indices);
110 const parts: React.ReactNode[] = [];
111 let i = 0;
112 while (i < text.length) {
430 ];
431
432 function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {
433 if (results.length === 0) return;
434 if (e.key === "ArrowDown") {
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function ValTownLogo () {
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.
Write business logic with ease
Meet the new standard for modern TypeScript development.
Type-safe, reactive, framework-agnostic library to manage your business logic.