#Input Fields

1 messages · Page 1 of 1 (latest)

slim finch
fair kettleBOT
#

Hi @slim finch. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Sorry @slim finch, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:

Perhaps try again in 15mins?

slim finch
#

Add an onSumbit handler to the form and use the formdata there

#

@red barn ^

red barn
#

Ooh I see and then we just pass name as a prop to the CustomInput?

slim finch
#

Yes

red barn
#

Its hard to wrap my head around not using controlled inputs and state everywhere in react after doing it so long 😥

slim finch
#

Or, you can extract the form to a different component and make it a client component, allowing you to do the same old state spam

red barn
#

Hey I added an onSumbit handler but it says you cannot do that

Event handlers cannot be passed to Client Component props.