title: How get props location in ReactJS
body: <p>How get location from props?</p>
  
  <pre><code>function TobaccoLine({ match, props  }) {
     const activeTab = useSelector(state =&gt; props.location.state ? props.location.state.activeTab : 0);
  ...
  }
  </code></pre>
  
  <p>Props are undefined. </p>
  
  <p>ReactJS v16.13.1</p>