Is it bad practice to place an if statement directly inside a React component:
const SomeComponent = props => { if (