Hono React logo

Hono React

Community
yusukebe
hono-react

When a project on Hono needs real React — for the React component ecosystem, SSR, or an SPA — drop hono/jsx and wire React in via vite-ssr-components.

Overview

Publisheryusukebe
Repositoryskills
Skill namehono-react
Stars
36
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by yusukebe on GitHub. Read the source before you install it.

Installation

Install the Hono React AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yusukebe/skills/tree/main/skills/hono-react
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yusukebe/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/hono-react .claude/skills/hono-react
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hono React in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hono React on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hono React is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Use React (not hono/jsx) on top of Hono

hono/jsx is the default for UI in a Hono project. Reach for React only when something that hono/jsx cannot satisfy makes it necessary — typically a React-only component library, a React-only ecosystem tool (e.g. a specific UI kit, charting library, headless component set), or a team requirement to standardize on React.

When that is the case, do not try to bridge hono/jsx to React. Rewrite the JSX in React and treat Hono as the server framework only.

When to reach for this skill

  • The UI needs a React-only library that has no hono/jsx equivalent.
  • You want full React SSR with hydration, not the lighter hono/jsx/dom model.
  • The team has standardized on React and the Hono side is just the server.

If none of the above applies, stay on hono/jsx — it is smaller, faster to ship, and the default for this stack. See hono and (for SPA-feel apps) hono-inertia.

Stack

  • Server: hono. Routes, middleware, validation — unchanged from any other Hono project.
  • UI: React (react, react-dom).
  • Bundling + SSR: Vite, plus vite-ssr-components for the asset wiring (Vite client, asset tags, module preloads) inside Hono responses. Use the /react entry, not /hono.
  • Deployment: Usually Cloudflare Workers via @cloudflare/vite-plugin. Start from the cloudflare-workers+vite Hono starter: https://github.com/honojs/starter/tree/main/templates/cloudflare-workers+vite

Migrating from hono/jsx to React

The rewrite is mechanical but real — do not try to keep both:

  • Remove jsxImportSource: "hono/jsx" from tsconfig.json (or switch it to react).
  • Replace hono/jsx and hono/jsx/dom imports with react / react-dom.
  • Switch vite-ssr-components/hono to vite-ssr-components/react in the root view / document component.
  • Rewrite any hono/jsx-specific hooks or helpers (useState from hono/jsx, hono/jsx/dom/css, etc.) to their React equivalents.
  • Confirm SSR output: React SSR has different streaming/hydration semantics than hono/jsx/dom.

Routing on the client

Once you are on React, the client-side routing question is open — pick what fits the app:

  • Inertia.js — works as-is with React (this is in fact its native target). If you want SPA-feel without writing a JSON API, this is the most direct option. The canonical example yusukebe/hono-inertia-example is written in React, so it transfers verbatim. (Contrast: the hono-inertia skill is the hono/jsx variant — use that if you do not need React.)
  • React Router, TanStack Router, etc. — fine. Hono just serves the shell + data endpoints; the router runs in the browser.
  • No router at all — also fine for a single-screen app. Use Hono for routes, React for the view.

There is no "official" choice here. Pick the one whose tradeoffs (file-based vs. config, data-loading model, SSR story) match the app.

Reference: vite-ssr-components

vite-ssr-components (yusukebe) is the small adapter that lets a Hono response correctly include the Vite dev client, hashed asset URLs, and module preloads in both vite dev and a production build. It has separate entries for the two JSX flavors:

  • vite-ssr-components/hono — for hono/jsx projects.
  • vite-ssr-components/react — for React projects. This is what to use here.

Read its README for the exact API:

https://github.com/yusukebe/vite-ssr-components

Pitfalls

  • Bundle size. React + react-dom is significantly heavier than hono/jsx/dom. If the only reason for the switch is "we wanted hooks", reconsider — hono/jsx has its own hooks.
  • SSR fidelity. React SSR is mature, but you still have to think about streaming vs. blocking, Suspense boundaries, and what runs only on the client. Verify the first paint of any route before shipping.
  • Workers runtime. Use react-dom/server paths that are compatible with the Workers runtime (no Node-only APIs). The @cloudflare/vite-plugin toolchain handles this if you start from the official template.
  • Do not mix hono/jsx and React in one app. Pick one. Two JSX runtimes in the same bundle is a guaranteed source of pain.

Related

  • hono — the base Hono skill. Start here.
  • hono-inertia — Inertia.js with hono/jsx (no React). Reach for that one first if you do not actually need React.
  • cloudflare — the deployment target.

Frequently asked questions

What does the Hono React AI skill do?

When a project on Hono needs real React — for the React component ecosystem, SSR, or an SPA — drop hono/jsx and wire React in via vite-ssr-components.

Why use Hono React on TypingMind?

Because you install it once and use it with any model. Hono React is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hono React in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yusukebe/skills/tree/main/skills/hono-react. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hono React?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hono React?

As many as you like. As long as a model supports skills, you can use Hono React with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hono React AI skill free?

It is published on GitHub by yusukebe. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇