title: Update object value in array React hooks way
body: <p>How would I update a title of the specific id with hooks state setup. Here:</p>
  
  <pre><code>const NotesContainer = ({
  
  }) =&gt; {
    const [notesDummyData, setNotesDummyData] = useState([
      {
        id: '5',
        title: 'Sauna',
      },
      {
        id: '7',
        title: 'Finland',
      },
    ]);
  
    const onChangeItemName = (newTitle, oldTitle, itemId) =&gt; {
  
      //Update a new title here for id 7
  
    };
  </code></pre>
  
  <p>Could not find any example for setState hooks.</p>