Pass plain components, rather than functions returning them
This commit is contained in:
parent
788be67c75
commit
df6d5cc2b4
5 changed files with 7 additions and 7 deletions
|
@ -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>,
|
||||
},
|
||||
) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue