title: React Ant modal props of undefined
body: <p>I'm using <a href="https://ant.design/components/modal/" rel="nofollow noreferrer">ant design modal</a>. when I click ok at confirmation dialog box. I'm getting error like <code>props of undefined</code> where as when I use outside of confirm it works fine.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>confirm({
      title: 'Do you Want to delete these items?',
      content: 'Some descriptions',
      onOk() {
        this.props.actions.delete()
      },
      onCancel() {
        console.log('Cancel');
      },
    });
  </code></pre>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'props' of undefined</p>
  </blockquote>
  
  <p><strong>Demo:</strong> <a href="https://codesandbox.io/s/k94004l1wv" rel="nofollow noreferrer">https://codesandbox.io/s/k94004l1wv</a></p>