Have a little problem with my useState Hook. I want to change only "answer".
const [questions, setQuestions] = useState({
    question1: { answer: "1", isCorrect: false },
    question2: { answer: "1", isCorrect: false },
    question3: { answer: "1", isCorrect: false },
    question4: { answer: "1", isCorrect: false }
  });
const onChange = e => {
    setQuestions({
      ...questions,
      [e.target.name]: { answer: e.target.value }
    });
  };
This function works, but isCorrect disappear. 
I know I can use [e.target.name]: { answer: e.target.value, isCorrect: false}
but I want a previous state. ...isCorrect doesn't work. It shoud be so easy but I cant find solucion. I wish someone can help me with that.
 
     
    