const React = require('react'); const Status = React.createClass({ renderConnectionState: function(errorUrl, websocketClosed) { if (errorUrl || websocketClosed) { const title = errorUrl ? 'Cannot reach Scope. Make sure the following URL is reachable: ' + errorUrl : ''; return (
Trying to reconnect...
); } }, render: function() { return (
{this.renderConnectionState(this.props.errorUrl, this.props.websocketClosed)}
); } }); module.exports = Status;