franius8 / todo-site

Validation of JSX maximum depth JS-0415
Anti-pattern
Minor
a year agoa year old
Expected the depth of nested jsx elements to be <= 2, but found 6
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>
118                        </form>
119                    </div>
Expected the depth of nested jsx elements to be <= 2, but found 6
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>
118                        </form>
Expected the depth of nested jsx elements to be <= 2, but found 6
110                                    <label htmlFor="Low">Low</label>
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>
Expected the depth of nested jsx elements to be <= 2, but found 5
 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>
100                            <div className="inputdiv"><label htmlFor="todocontentedit">Content (optional):</label>
Expected the depth of nested jsx elements to be <= 2, but found 5
 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}/>