margaritahumanitarian / helpafamily

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
3 occurrences in this check
JSX props should not use arrow functions
137          </button>
138        </div>
139      </form>
140      <Modal isOpen={isModalOpen} onClose={hideModal}>141        {modalText}
142      </Modal>
143    </>
JSX props should not use arrow functions
 99            {'Help us develop programs for:'}
100          </h2>
101          {isAnyoneInNeed && (
102            <button onClick={reset} type="button">103              {'Reset form'}
104            </button>
105          )}
JSX props should not use arrow functions
 90
 91  return (
 92    <>
 93      <form onSubmit={handleSubmitForm}> 94        <div
 95          className="p-6 mb-5 card bordered bg-base-100 space-y-3 text-black"
 96          data-theme="cupcake"