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
No description
3 Replies
akashpatil7596
akashpatil7596OP3mo ago
Help me please
oscarvz
oscarvz2mo ago
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.
akashpatil7596
akashpatil7596OP2mo ago
Maan Thank you so so much

Did you find this page helpful?