AccountsUIWrapper.jsx 428 B

1234567891011121314
  1. AccountsUIWrapper = React.createClass({
  2. componentDidMount() {
  3. // Use Meteor Blaze to render login buttons.
  4. this.view = Blaze.render(Template.loginButtons, ReactDOM.findDOMNode(this.refs.container));
  5. },
  6. componentWillUnmount() {
  7. // Clean up Blaze view.
  8. Blaze.remove(this.view);
  9. },
  10. render() {
  11. // Just render a placeholder container that will be filled in.
  12. return <span ref="container" />;
  13. }
  14. });