Pass plain components, rather than functions returning them

This commit is contained in:
Stefan Parviainen 2017-11-14 20:09:52 +01:00
parent 788be67c75
commit df6d5cc2b4
5 changed files with 7 additions and 7 deletions

View file

@ -272,7 +272,7 @@ export default React.createClass({
'homeserver, or you can pick a <a>different server</a>.',
{},
{
'span': () => <span>{ this.props.homeserverUrl }</span>,
'span': <span>{ this.props.homeserverUrl }</span>,
'a': (sub) => <a href="#" onClick={this.props.onDifferentServerClicked}>{ sub }</a>,
},
) }