Skip to content

Instantly share code, notes, and snippets.

@spencer-brown
Last active July 27, 2017 18:29
Show Gist options
  • Save spencer-brown/65b41fba869e0570bd776374bd804874 to your computer and use it in GitHub Desktop.
Save spencer-brown/65b41fba869e0570bd776374bd804874 to your computer and use it in GitHub Desktop.
// ...
const MeetingTypesDashboardView = Backbone.View.extend({
render() {
ReactDOM.render(
<MeetingTypesDashboard />,
this.el
);
return this;
},
remove() {
ReactDOM.unmountComponentAtNode(this.el);
MeetingTypesDashboardView.__super__.remove.apply(this);
}
});
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment