class Test extends React.Component {
render() {
return (
<div>
{this.props.user && <span>
{this.props.user.displayname}
</span>
}
</div>
)
}
}