I want to submit a react form making an ajax call to php server. I have used react hook but since I am new to it, I cant not figure out error actually. I have skipped the import part. The above code runs without any error but when I click the button, nothing happens. This is my php code: Answer