** ReactJs **
let resultDisplay=""
if(Bmi>=18 || Bmi<=25 )
{resultDisplay= <p>Perfect</p>
}
Problem is right there but I can't figure it out since I new in React
else if(Bmi<18)
resultDisplay=<p>to Thin</p>
`` For me looks fine any guidence and help would be great ```
else if(Bmi>25)
resultDisplay=<p>Overweight</p>
setresult(resultDisplay)
}
Right now its only working on one condition and doesn't rendering the other conditions results
Aucun commentaire:
Enregistrer un commentaire