A better if/else construct for your React components