title: How to set initial state value for useState Hook in jest and enzyme?
body: <p>I know this question is already asked here: <a href="https://stackoverflow.com/questions/57025753/how-to-set-initial-state-for-usestate-hook-in-jest-and-enzyme">How to set initial state for useState Hook in jest and enzyme?</a></p>
  
  <pre><code>const [state, setState] = useState([]);
  </code></pre>
  
  <p>And I totally agree with <a href="https://stackoverflow.com/a/57383937/1584275">Jimmy's Answer</a> to mock the useState function from test file but I have some extended version of this question, "What if I have multiple useState statements into the hooks, How can I test them and assign the respective custom values to them?"</p>
  
  <p>I have some JSX rendering with the condition of hook's state values and depending on the values of that state the <code>JSX</code> is rendering.</p>
  
  <p>How Can I test those JSX by getting them into the <code>wrapper</code> of my test case code?</p>