text: import React, { Component } from 'react';
  import ReactDOM from 'react-dom';
  import { Template } from 'meteor/templating';
  import { Blaze } from 'meteor/blaze';
  
  class Accounts extends Component {
    componentDidMount() {
      // Render the Blaze accounts form then find the div
      // we just rendered in the 'render' method and place
      // the Blaze accounts form in that div
      this.view = Blaze.render(Template.loginButtons,
        ReactDOM.findDOMNode(this.refs.authentication));
    }
  
    componentWillUnmount() {
      // Go find the forms we created and destroy them
      // We need to clean up those forms ourselves
      Blaze.remove(this.view);
    }
  
    render() {
      return (
        <div ref="authentication"></div>
      );
    }
  }
  
  export default Accounts;
  