franius8 / todo-site

Avoid .bind() or local functions in JSX properties JS-0417
Performance
Major
a year agoa year old
JSX props should not use arrow functions
117                            </div>
118                        </form>
119                    </div>
120                    <EditFormButtonDiv toggleEdit={toggleEdit} />121                </div>
122            </div>
123        );
JSX props should not use arrow functions
111                                    <input type="radio" name="todopriorityedit" value="Standard" id="Standard" onChange={handleInputChange}
112                                           checked={priority === "Standard"}/>
113                                    <label htmlFor="Standard">Standard</label>
114                                    <input type="radio" name="todopriorityedit" value="High" id="High" onChange={handleInputChange}115                                           checked={priority === "High"}/>
116                                    <label htmlFor="High">High</label></div>
117                            </div>
JSX props should not use arrow functions
 93                        <div className="checkbox"></div>
 94                    </div>
 95                    <div className="duringedit">
 96                        <form className="todocontent" id="editform" onSubmit={handleSubmit}> 97                            <div className="inputdiv"><label htmlFor="todotitleedit">Title:</label>
 98                                <input type="text" name="todotitleedit" id="todotitleedit" required value={heading} onChange={handleInputChange}/>
 99                            </div>
JSX props should not use arrow functions
 95                    <div className="duringedit">
 96                        <form className="todocontent" id="editform" onSubmit={handleSubmit}>
 97                            <div className="inputdiv"><label htmlFor="todotitleedit">Title:</label>
 98                                <input type="text" name="todotitleedit" id="todotitleedit" required value={heading} onChange={handleInputChange}/> 99                            </div>
100                            <div className="inputdiv"><label htmlFor="todocontentedit">Content (optional):</label>
101                                <input type="text" name="todocontentedit" id="todocontentedit" value={text} onChange={handleInputChange}/>
JSX props should not use arrow functions
 98                                <input type="text" name="todotitleedit" id="todotitleedit" required value={heading} onChange={handleInputChange}/>
 99                            </div>
100                            <div className="inputdiv"><label htmlFor="todocontentedit">Content (optional):</label>
101                                <input type="text" name="todocontentedit" id="todocontentedit" value={text} onChange={handleInputChange}/>102                            </div>
103                            <div className="inputdiv"><label htmlFor="tododateedit">Due date:</label>
104                                <input type="date" name="tododateedit" id="tododateedit" required value={date} onChange={handleInputChange}/>