title: Delete a value from the list in ReactJs
body: <p>I am using antd, <code>upload</code> component.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { useState } from "react";
  import ReactDOM from "react-dom";
  import "antd/dist/antd.css";
  import "./index.css";
  import { Upload, Button } from "antd";
  import { UploadOutlined } from "@ant-design/icons";
  
  const fileList = [
    {
      uid: "-1",
      name: "xxx.png",
      status: "done",
      url:
        "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
      thumbUrl:
        "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
    },
    {
      uid: "-2",
      name: "yyy.png",
      status: "error"
    }
  ];
  
  console.log(fileList);
  const Demo = () =&gt; {
    const [state, setState] = useState([...fileList]);
    const add = () =&gt; {
      setState([
        ...state,
        {
          uid: "-3",
          name: "xxdx.png",
          status: "done",
          url:
            "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
          thumbUrl:
            "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
        }
      ]);
    };
    return (
      &lt;&gt;
        &lt;button onClick={add}&gt;add&lt;/button&gt;
        &lt;Upload
          action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
          listType="picture"
          fileList={[...state]}
        &gt;
          &lt;Button icon={&lt;UploadOutlined /&gt;}&gt;Upload&lt;/Button&gt;
        &lt;/Upload&gt;
      &lt;/&gt;
    );
  };
  
  ReactDOM.render(&lt;Demo /&gt;, document.getElementById("container"));</code></pre>
  </div>
  </div>
  </p>
  <p>I want to delete an image from the list bellow uploader, but something is wrong and it does not work.
  <br>
  Why deleting images does not work?<br>
  demo: <a href="https://codesandbox.io/s/pictures-with-list-style-antd4130-forked-umels?file=/index.js:0-1382" rel="nofollow noreferrer">https://codesandbox.io/s/pictures-with-list-style-antd4130-forked-umels?file=/index.js:0-1382</a></p>