Counselllor / Counsellor-Web

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
3 occurrences in this check
JSX props should not use arrow functions
213            key={college.id}
214            onClick={() => handleCollegeClick(college)}
215            onTouchStart={() => handleTouchStart(index)}
216            onTouchEnd={handleTouchEnd}217          >
218            <div className="college-content">
219              <div className="up">
JSX props should not use arrow functions
212            className={`college ${activeIndex === index ? 'active' : ''}`}
213            key={college.id}
214            onClick={() => handleCollegeClick(college)}
215            onTouchStart={() => handleTouchStart(index)}216            onTouchEnd={handleTouchEnd}
217          >
218            <div className="college-content">
JSX props should not use arrow functions
211          <div
212            className={`college ${activeIndex === index ? 'active' : ''}`}
213            key={college.id}
214            onClick={() => handleCollegeClick(college)}215            onTouchStart={() => handleTouchStart(index)}
216            onTouchEnd={handleTouchEnd}
217          >