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