title: How can i pop a value with key from local state?
body: <p>I have a local state as object:</p>
  
  <pre><code>selectedDates = {};
  </code></pre>
  
  <p>When i click on icons I am getting ID´s in my local state as object <code>key, value</code> pair.</p>
  
  <pre><code>    // We "open" the value to extract the relevant informations
      const [key, value] = calendarIconId.split("=");
  
      // Add the new value inside of the object
      this.state.selectedDatesTemp[key] = value;
  
      // Turn the object into an array, we gotta rebuild the values
      const date = Object.keys(this.state.selectedDatesTemp).map(
          x =&gt; `${x}=${this.state.selectedDatesTemp[x]}`
      );
  </code></pre>
  
  <p>How can i delete an object from the local state?</p>