conditional rendering is not working in my functional component

前端 未结 0 625
时光说笑
时光说笑 2021-01-24 06:10

I am trying to render a component if (age<18) in the next block of code

 var split_dob = dateOfBirth.split("-");
    var month = split_dob[1];
var da         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题