var ZeroTierNetwork = React.createClass({ getInitialState: function() { return {}; }, leaveNetwork: function(event) { if (confirm("Are you sure you want to leave this network?")) { 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 (