SetState in a Conditional statement inside JSX in react native?

后端 未结 0 512
不知归路
不知归路 2020-12-18 18:24

I want to set my state inside JSX expression and show my component if the condition is true. I tried this this:

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