margaritahumanitarian / helpafamily

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
4 occurrences in this check
JSX props should not use arrow functions
 62                <form className="lg:flex md:items-end" onSubmit={handleSubmit}>
 63                  <input
 64                    className={`appearance-none border border-gray-300 rounded h-full py-3 mb-2 lg:mb-0 mr-0 lg:mr-4 w-full px-3 ${textColor} ${backgroundColor} leading-tight focus:outline-none focus:shadow-outline`}
 65                    onChange={(value) => { 66                      setEmail(value.target.value); 67                    }} 68                    // placeholder="Enter Your Email"
 69                    required
 70                    type="email"
JSX props should not use arrow functions
 59                <p className={`pt-5 text-l ${textColor}`}>
 60                  {'Enter Your Email'}
 61                </p>
 62                <form className="lg:flex md:items-end" onSubmit={handleSubmit}> 63                  <input
 64                    className={`appearance-none border border-gray-300 rounded h-full py-3 mb-2 lg:mb-0 mr-0 lg:mr-4 w-full px-3 ${textColor} ${backgroundColor} leading-tight focus:outline-none focus:shadow-outline`}
 65                    onChange={(value) => {
JSX props should not use arrow functions
 80          </button>
 81        </div>
 82      </form>
 83      <Modal isOpen={isModalOpen} onClose={hideModal}> 84        {modalText}
 85      </Modal>
 86
JSX props should not use arrow functions
 41
 42  return (
 43    <>
 44      <form onSubmit={handleSubmitForm}> 45        <div className="p-6  bcolor mb-5 card  bg-base-100 space-y-3 text-black">
 46          <h2 className="card-title text-color" data-theme="light">
 47            {'Give Today'}