Indicate that a prop is required by the component. Doing this will display a warning in the console if the prop is not passed.
Use a ternary operator. If this.state.authorized is true, make the ternary return contactInfo. Otherwise, make the ternary return login
If you have a component class with nothing but a render function, is it necessary to use React.Component ?
Attention : Est-ce que je peux me passer des guillemets et d'unité pour la valeur numérique d'un style ?