title: how to pass input box value to action in react-redux
body: <p>sorry for combining 2 questions here. I am writing simple search/filter application. previously only my component was present so I was able to input text value easily. but now I started writing my container part,so I am confused that how should I pass user value to the action? and my 2nd question how will I write fetched result back to my page</p>
  
  <p>here is my SearchContainer</p>
  
  <pre><code>import Search from "../components/Search"
  import React from "react"
  import {connect} from "react-redux"
  import {search} from "../action/SearchAction"
  import {bindActionCreators} from 'redux';
  const SearchContainer = ({search}) =&gt;(
      &lt;Search nameSearch={(value) =&gt; search(value)}/&gt;
  )
  const mapDispatchToProps= (dispatch) =&gt; (
   bindActionCreators({search},dispatch)
  )
  const mapStateToProps= state =&gt; {
      console.log("state",state)
      return{
      results:state.searchResult.values
      }
  }
  
  export default connect(
       mapStateToProps,
      mapDispatchToProps
  
  ) (SearchContainer)
  </code></pre>
  
  <p>here is my search page</p>
  
  <pre><code>import React from "react"
  import Select from "react-select"
  import {connect} from "react-redux"
  
  
  const Search = ({nameSearch}) =&gt; {
     // const {search,value} = this.props
  
      return (
      &lt;div&gt;
          &lt;input name="search"  id="searchbutton" onKeyUp= {nameSearch}&gt;&lt;/input&gt;
       &lt;/div&gt;
      )
  }
  
  
  
  export default Search
  </code></pre>