var ZeroTierNetwork = React.createClass({ getInitialState: function() { return {}; }, leaveNetwork: function(event) { Ajax.call({ url: 'network/'+this.props.nwid+'?auth='+this.props.authToken, cache: false, type: 'DELETE', success: function(data) { if (this.props.onNetworkDeleted) this.props.onNetworkDeleted(this.props.nwid); }.bind(this), error: function(error) { }.bind(this) }); event.preventDefault(); }, render: function() { return (