79361869

Date: 2025-01-16 14:04:59
Score: 0.5
Natty:
Report link

Move this.setFormState(); from the closeModal() method to the openModal() method.

There are cleaner ways of doing this like having the modal being its component so it can have its own lifecycle and Output the value of the form back to your parent component when its closed.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Edward Newsome