content: import React, { Component } from 'react';
  import { connect } from 'react-redux';
  import { setSearchWord } from '../actions';
  
  class SearchBox extends React.Component{
      constructor(props){
          super(props);
      }
      
      render(){
          return(
              <div>
                  <input type='text' className='form-control' onChange={
                      e=>{
                          e.preventDefault();
                          this.props.dispatch(setSearchWord(e.target.value));
                      }}
                  />
              </div>
          );
      }
  }
  
  export default connect()(SearchBox);