Hono by example

⇐ back to posts

Hollo World

This is a test

And it's a great one

Imagine you want to say hello to the world, you can do it like this:

type HelloType = {
  hello: string;
};

function doTheHello(): HelloType {
  console.log("Hello World");

  return {
    hello: "Hello World",
  };
}

// This is the hello
const theHello = doTheHello();

It's just as simple as that: call doTheHello() and you're done.