honojs / website

Repository for hono.dev
https://hono.dev
68 stars 217 forks source link

Improve explanation for hono client components #260

Open szabbbbu opened 4 months ago

szabbbbu commented 4 months ago

These additions could help:

1: explain which runtimes are currently supported 2: add example code that ties together server side components with client components 3: give a robust example of how to use the render() function. How can I insert my client components into other components? 4: explain how it's possible to access the document object in the example code 5: explain how changing the tsconfig to "hono/jsx/dom" affects the other jsx components you've made. (Using bun & vscode, this causes linting errors for all my existing jsx components)

Overall, it just needs a more thorough explanation of setup and use because it currently has no examples of how to utilize hono client components along with regular server components. (is this even possible?)