Feedback on how to improve my form made in react using mui5.0

Viewed 15

I have a form template which uses ajax for verification of records and has a banner which changes it's popup depending upon case.

But I am experiencing some problems and needs some feedback. Problems I am facing are:

  1. popup only pops one time and will not popup again till page is refreshed,
  2. I am trying to make button disabled if data is being sent but it will remain disabled even if fields are empty. Instead I want form to not send data if fields are empty and user is asked for entering data while button should not be disabled in this case.

Here's a codesandbox link: https://codesandbox.io/s/infallible-pascal-ttucfk?file=/src/App.jsx

0 Answers
Related