dapoadedire / astro-pic-of-the-day

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
2 occurrences in this check
JSX props should not use arrow functions
18      <main>
19        <div className="form-container">
20          <form
21            onSubmit={(e) => {22              e.preventDefault();23              const date = e.target.date.value;24              setDate(date);25            }}26          >
27            <label htmlFor="date">
28              <input
JSX props should not use arrow functions
38          </form>
39          <div className="button">
40            <button
41              onClick={() => {42                const randomDate = generateRandomDate();43                setDate(randomDate);44              }}45            >
46              Random
47            </button>