If you’ve only got simple conditional statements, you can also use ternary expressions rather than moving the conditional statement. More complex conditional statements, for readability benefits, should probably be moved outside of the JSX.