Why if-else is not working in this react code, cause I am not getting output? – Reactjs
I was trying to achieve something like this in react e.g. user enter his/her age and when click the button following logic should work if age>18 then Eligible for Passport else Not eligible But I am getting no output when…