kashi326 / inertia-react-laravel-template

Validation of JSX maximum depth JS-0415
Anti-pattern
Minor
2 years ago2 years old
Expected the depth of nested jsx elements to be <= 2, but found 3
31                </div>
32                <div className="login-card-footer">
33                    <button className="custom-button">Login</button>
34                        <a href="#" className={"forgot"}>Forgot username or password?</a>35                </div>
36
37            </div>
Expected the depth of nested jsx elements to be <= 2, but found 3
30                    </div>
31                </div>
32                <div className="login-card-footer">
33                    <button className="custom-button">Login</button>34                        <a href="#" className={"forgot"}>Forgot username or password?</a>
35                </div>
36
Expected the depth of nested jsx elements to be <= 2, but found 4
26                    </div>
27                    <div className="field-container">
28                        <input className="field-input" id="password" name="password" type="password" placeholder=" "/>
29                        <label className="field-placeholder" htmlFor="password">Password</label>30                    </div>
31                </div>
32                <div className="login-card-footer">
Expected the depth of nested jsx elements to be <= 2, but found 4
25                        <label className="field-placeholder" htmlFor="username">Username</label>
26                    </div>
27                    <div className="field-container">
28                        <input className="field-input" id="password" name="password" type="password" placeholder=" "/>29                        <label className="field-placeholder" htmlFor="password">Password</label>
30                    </div>
31                </div>
Expected the depth of nested jsx elements to be <= 2, but found 4
22                <div className="login-card-body">
23                    <div className="field-container">
24                        <input className="field-input" id="username" name="username" type="text" placeholder=" "/>
25                        <label className="field-placeholder" htmlFor="username">Username</label>26                    </div>
27                    <div className="field-container">
28                        <input className="field-input" id="password" name="password" type="password" placeholder=" "/>