Passing data as props in form function
Hi fam how can I pass props on a form function below is my form function
How can I pass data as prop
8 Replies
You can create the handler function with another function:
Or define it inline (if possible):
I got it right but server throwing 500 internal server error
Below is the function code to perform user sign up
I tried creating an account using axios at first it worked but after creating a single account it stopped working what might be the problem in the new app dir

Seems like an issue with your db connection
You might want to look into
toast.promise()
for something like this. https://react-hot-toast.com/docs/toastHow do I solve this?
Make sure you're using the correct env variables and that the setup is correct, are you using planetscale?
I'm using prisma and mongodb atlas