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
191            key={college.id}
192            onClick={() => handleCollegeClick(college)}
193            onTouchStart={() => handleTouchStart(index)}
194            onTouchEnd={handleTouchEnd}195          >
196            <div className="college-content">
197              <div className="up">
JSX props should not use arrow functions
190            className={`college ${activeIndex === index ? 'active' : ''}`}
191            key={college.id}
192            onClick={() => handleCollegeClick(college)}
193            onTouchStart={() => handleTouchStart(index)}194            onTouchEnd={handleTouchEnd}
195          >
196            <div className="college-content">
JSX props should not use arrow functions
189          <div
190            className={`college ${activeIndex === index ? 'active' : ''}`}
191            key={college.id}
192            onClick={() => handleCollegeClick(college)}193            onTouchStart={() => handleTouchStart(index)}
194            onTouchEnd={handleTouchEnd}
195          >