title: Constructor props equivalent in React Hooks for history push
body: <p>I'm trying to migrate one class component to function with hooks but i have a problem when try to change the url with my history.push. </p>
  
  <p>With my class component this is the way to change the url:</p>
  
  <pre><code>  constructor(props) {
  
      super(props)
  
      this.state = {
       // GeneralValidate: false,
        paisValue: '',
        paisError: true,
        loading: false,
        tipo: '',
    };
  
    }
  
  
  .//more code here
  
  
   this.props.history.push({
    pathname: '/Pais',
    state: { detail: 'hola' }
  })
  </code></pre>
  
  <p>And works fine but in my function component the props its empty and i dont know how i cant use the history.push. </p>
  
  <pre><code> const PaisForm = (props) =&gt; { 
   props.history.push("/Pais")
  }
  </code></pre>
  
  <p>What i'm doing wrong? Thanks and sorry for the issues!</p>