This is related to hono talk to understand basic things about honojs.
npm install
npm run dev
and this will open http://localhost:3000
https://master.hono-fly.pages.dev/
Note: using cloudflare adapter and uploaded from separate repo
Here are few examples with honojs
- endpoint:
/
- use of
c.text()
- endpoint:
/welcome
- use of
c.header()
andc.body()
- endpoint:
/hello
or/hey
or/hi
- multiple path return same page; no redirect logic
- endpoint:
/json/list
- use of
c.json()
andapp.all()
route
- endpoint:
/html/element
- use of
c.html()
-
/color/
-
/color/rainbow
- endpoint:
/color/white
- add any valid color in place of white as a path params
- endpoint:
/color/white?sz=3
- change font size with query params
sz
- endpoint:
/alphabet
- use of reusable component like react
Keshav Mohta | @xkeshav