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) => { handleTagRemove(item.value); }}16                ></span>
17            </div>
18        );
JSX props should not use arrow functions
121                            data-test="custom-select-options-list"
122                            options={optionsData}
123                            selectedOption={selectedOption}
124                            handleOptionSelection={(e) => { this.handleOptionSelection(e); }}125                        ></SelectOptionList>
126                    }
127                </div>
JSX props should not use arrow functions
111                            inputValue={searchKeyword}
112                            placeholder={defaultText}
113                            handleOnChange={(e) => { this.handleSearchText(e); }}
114                            handleOnFocus={(e) => { this.handleFocusOnSelect(e); }}115                        ></InputTextBox>
116                    </div>
117                    {
JSX props should not use arrow functions
110                            data-test="custom-select-input-box"
111                            inputValue={searchKeyword}
112                            placeholder={defaultText}
113                            handleOnChange={(e) => { this.handleSearchText(e); }}114                            handleOnFocus={(e) => { this.handleFocusOnSelect(e); }}
115                        ></InputTextBox>
116                    </div>
JSX props should not use arrow functions
104                        <Tag
105                            data-test="customSelect-tag"
106                            tagList={selectedOption}
107                            handleTagRemove={(option) => { this.handleOptionDeSelect(option); }}108                        ></Tag>
109                        <InputTextBox
110                            data-test="custom-select-input-box"
JSX props should not use arrow functions
 97
 98        return (
 99            <OutsideClickHandler
100                onOutsideClick={() => {this.handleClickOutside();}}101            >
102                <div data-test="component-CustomSelect" className='tag-ctn tag-ctn-bootstrap-focus'>
103                    <div className="tag-sel-ctn">