mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
AccountsUIWrapper = React.createClass({
|
|
componentDidMount() {
|
|
// Use Meteor Blaze to render login buttons
|
|
this.view = Blaze.render(Template.loginButtons,
|
|
React.findDOMNode(this.refs.container));
|
|
},
|
|
componentWillUnmount() {
|
|
// Clean up Blaze view
|
|
Blaze.remove(this.view);
|
|
},
|
|
render() {
|
|
// Just render a placeholder container that will be filled in
|
|
return <span ref="container" />;
|
|
}
|
|
});
|