gururajbm / custom-select-tdd

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
6 occurrences in this check
JSX props should not use arrow functions
12        <span
13          data-test="tag-delete"
14          className="tag-close-btn"
15          onClick={(e) => {16            handleTagRemove(item.value);17          }}18        />
19      </div>
20    );
JSX props should not use arrow functions
123              data-test="custom-select-options-list"
124              options={optionsData}
125              selectedOption={selectedOption}
126              handleOptionSelection={(e) => {127                this.handleOptionSelection(e);128              }}129            />
130          )}
131        </div>
JSX props should not use arrow functions
113              handleOnChange={(e) => {
114                this.handleSearchText(e);
115              }}
116              handleOnFocus={(e) => {117                this.handleFocusOnSelect(e);118              }}119            />
120          </div>
121          {showOption && (
JSX props should not use arrow functions
 90
 91    return (
 92      <OutsideClickHandler
 93        onOutsideClick={() => { 94          this.handleClickOutside(); 95        }} 96      >
 97        <div
 98          data-test="component-CustomSelect"
JSX props should not use arrow functions
110              data-test="custom-select-input-box"
111              inputValue={searchKeyword}
112              placeholder={defaultText}
113              handleOnChange={(e) => {114                this.handleSearchText(e);115              }}116              handleOnFocus={(e) => {
117                this.handleFocusOnSelect(e);
118              }}
JSX props should not use arrow functions
102            <Tag
103              data-test="customSelect-tag"
104              tagList={selectedOption}
105              handleTagRemove={(option) => {106                this.handleOptionDeSelect(option);107              }}108            />
109            <InputTextBox
110              data-test="custom-select-input-box"