title: How can I change only one value in a React useState that contains an object and assign a different one to the rest?
body: <p>I have the following State:</p>
  <pre><code>const [clickColumn, setClickColumn] = useState({
      name: 0,
      tasks: 0,
      partner: 0,
      riskFactor: 0,
      legalForm: 0,
      foundationYear: 0
    })
  </code></pre>
  <p>And now, for example, I only want to set name to 2 and the rest to 1. But I do not want to write it this way: <code>setClickColumn({ name: 2, tasks: 1, riskFactor: 1, partner: 1, legalForm: 1, foundationYear: 1 });</code></p>
  <p>How can I make it shorter?</p>