I'm try to implement useEffect for my componentDidMount, but I don't know how do this for this case:

```
 componentDidMount() {
    logNavego(this.props.history.location.pathname + 
    this.props.history.location.search )
    this.unlisten = this.props.history.listen(location => {
      logNavego(location.pathname + location.search)
    })
  }

```