title: How to Check Props Type using react-redux useSelector and useDispatch
body: <p>Before Introducing react-redux (useSelector,useDispatch) through connect we used to check to props types like this.. </p>
  
  <pre><code>import PropTypes from 'props-types'     
  
     Component.propTypes ={
       post:PropTypes.object.isRequired
     }
  
      const mapStateToProps = state =&gt;({
       post:state.post
      })
  export default connect(mapStateToProps,null)(Component);
  </code></pre>
  
  <p>But now react-redux Introduce (useSelector,useDispatch), so using these latest techniques we access state or function like this.</p>
  
  <pre><code>import PropTypes from 'props-types' 
  import {useDispatch,useSelector}from 'react-redux'
  import getLoad from  'function/getLoad'
  
    const dispatch = useDispatch(()=&gt;getLoad())
    const post = useSelector(state=&gt;state.post)
  </code></pre>
  
  <p>so Now How we Will check Prop Types here Using these techniques.</p>
  
  <p>I tried to check prop types using react-redux (useSelector,useDispatch) like this, kindly check this, is it correct or not kindly response back.</p>
  
  <pre><code>   const dispatch = useDispatch( ()=&gt;getLoad() )
     const post = useSelector( state=&gt;state.post )
  
  //checking props types
  
      Component.propTypes = {
       getLoad:PropTypes.func.isRequired,
       post: PropTypes.object.isRequired
       }
  </code></pre>