title: How to use `useSelector` in a class based component? React, Redux
body: <p>I wanna get the data from my Redux storage, not an error :)</p>
  <p><strong>In a function based component I always do like this</strong></p>
  <pre class="lang-reactjs prettyprint-override"><code>...
  
  import { useSelector } from 'react-redux';
  
  export deafult function App(...){
    ...
  
    const someData = useSelector(state =&gt; state.someData);
  
    ...
    return (...)
  }
  ...
  </code></pre>
  <p><strong>But when it comes to a class based component I want smth like this, but I get an error :(</strong></p>
  <pre class="lang-reactjs prettyprint-override"><code>...
  import { useSelector } from 'react-redux';
  
  export default class App  extends Component {
    constructor(...){
      ...
      
      const someData = useSelector(state =&gt; state.someData);
  
      ...
    }
  
    render(...)
  }
  ...
  
  </code></pre>