src/containers/search_bar.js
//when enter or search is pressed, peform the actions.
when enter or search is pressed, peform the actions.
when enter or search is pressed peform the actions .
onFormSubmit(event) {
    event.preventDefault();
    console.log(this.state.term);
    this.props.fetchTrack(this.state.term);
    this.props.fetchLyric(this.state.term);
    this.props.fetchCover(this.state.term);
    this.setState({term: ''})
  }
onFormSubmit ( event ) { event . preventDefault ( ) ; console . log ( this . state . term ) ; this . props . fetchTrack ( this . state . term ) ; this . props . fetchLyric ( this . state . term ) ; this . props . fetchCover ( this . state . term ) ; this . setState ( { term : '' } ) }
when enter or search is pressed, peform the actions.
when enter or search is pressed peform the actions .
//doesn't rerender every time somethings typed //fetch song data, imported actions //reset state