text: import React, { Component } from 'react';
  
  
  class Search extends Component {
  
    submitForm(event){
      event.preventDefault();
      let value = this.refs.username.value;
      this.props.searchProfile(value);
      this.refs.username.value = '';
    }
  
  
    render(){
      return(
        <div className="search-box">
          <form onSubmit={this.submitForm.bind(this)}>
            <h3>Type github username and hit Enter</h3>
            <label><input type="search" ref="username" placeholder="github username"/></label>
          </form>
        </div>
      );
    }
  }
  
  export default Search;
  