yanuu

Results comments of yanuu

If you're using the Pages Directory, you don't need to worry about this. Unfortunately the only "fix" for now (for App Directory projects) is to move your element (whether it's...

@citrusjunoss You can't use these elements with server components (for now I guess), also, why would you import the Accordion in a CC file and export it? Just make the...

@citrusjunoss Yes, you can export part of your code into a new file and use it in your server component (as long as the new file has a "use client"...

Any update on this? Still doesn't work when using react-hook-form. I know I can just make the submit Button component run the handleSubmit, but still. *Code snippet for reference* ```tsx...

@wingkwong Maybe that's the solution, haven't tried it. Thanks! My temporary solution was to assign the handleSubmit function to the button itself to trigger submission. I'll update the code tomorrow...

I can confirm that the form element needs to be inside of the ModalContent, the handleSubmit works now. Thanks, @wingkwong :)

Agreed. I'm getting a crap ton of errors because of this exact issue. ![image](https://github.com/user-attachments/assets/66c3ea21-fab7-4c36-8173-15f7a4836015)