title: How to clone react state array without making changes to it?
body: <p>How can I clone a react state from one to another without modifying the original state?</p>
  
  <p>What I am trying to do is I want to change the state of the original state when I filter data and on reset I want to replace it with the copy of the original state.</p>
  
  <p>I have tried using myArray.slice(); this works.. but when I make changes it is still rewriting my state.</p>
  
  <p>How can I do this issue? is it possible?</p>
  
  <p>Thanks in advance.</p>