React tutorial for beginners #18 Conditional rendering | If Condition

React tutorial for beginners #18 Conditional rendering | If Condition

Code Step By Step

3 года назад

5,223 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@adinarayanareddy1205
@adinarayanareddy1205 - 23.08.2023 11:27

yes Possible Multiple conditional separeate varaible declartion import React, { useState } from "react";

const Multipleconditional = () => {
let [islogged, setLogged] = useState();

islogged = 2000


return <>{

islogged ===100 ? <h1>Hello Loggin </h1> :

islogged ===2000 ? <h1>Helo login again </h1> :

<p>logouta....</p>

}</>
};

export default Multipleconditional;

Ответить
@karthikshetty8335
@karthikshetty8335 - 07.08.2022 15:49

Thank You

Ответить
@balajipandagale7047
@balajipandagale7047 - 11.01.2022 07:07

Thank u

Ответить
@toannew
@toannew - 29.08.2021 16:35

thank you so much

Ответить