title: reactjs - alert message with data on it
body: <p>i have a modal form dialog to enter name (data) and when the button submit clicked i wanted it to display alert message for example: '(data) have been added to the list!' sorry if this is too dumb, i am still new to reactjs thank you</p>
  
  <p>this is currently my code</p>
  
  <pre><code>              handleCreate = () =&gt; {
  
                const form = this.form;
                form.validateFields((err, values) =&gt; {
                  if (err) {
                    return;
                  }
  
                  var data = this.state.data
                  values.data = []
                  data.push(values)
                  this.setState({ data:data });
                  console.log(data)
                  this.setState({ visible: false });
  
                  form.resetFields();
  
                  alert('{data} have been added!');
  
                });
  </code></pre>