Home > database >  difference between onChange and onSubmit
difference between onChange and onSubmit

Time:11-03

Can you guys tell me what are the differences between onChange and onSubmit while using it in react ???

I have search through all of the google and still haven't find an convincing answer :/

CodePudding user response:

onChange fires any time the user changes an element's value.

onSubmit fires when a form is submitted.

  • Related