I want to return component to API response which contsin useState.
I have tried to return component but useState won't work, only messages like Hello World works
![No description](https://cdn.answeroverflow.com/1309465043590447124/image.png)
![No description](https://cdn.answeroverflow.com/1309465043980779560/image.png)
3 Replies
Help me please
Hi, this is because your component is built on the server, but no JS is shipped to your browser to make the component interactive. I wrote this article that can help you out:
https://dev.to/fiberplane/step-by-step-guide-adding-client-side-logic-to-your-hono-app-14eh
DEV Community
Step-by-step guide: Adding client-side logic to your Hono app
A guide to adding client-side logic to your Hono app.
Maan
Thank you so so much