79091045

Date: 2024-10-15 17:15:39
Score: 1.5
Natty:
Report link

I believe you can call the .isOptional() method.

<input required={!schema.shape.name.isOptional()} />
<input required={!schema.shape.address.isOptional()} />
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kyle Richardson