title: How can change route on submit event in React with TypeScript
body: <p>I use React with TypeScript, I want simply when on submit button click, change route to specific state. </p>
  
  <p><code>this.props.router.push('/list');</code> not work on submit method.</p>
  
  <p>React versions:</p>
  
  <pre><code>"react": "15.5.4",
  "react-dom": "15.5.4",
  </code></pre>
  
  <p>My Code in tsx file</p>
  
  <pre><code>import * as React from 'react';
  import { BrowserRouter } from 'react-router-dom';
  
  export interface CreateProps {
      router?: BrowserRouter;
  }
  
  export class Create extends React.Component&lt;CreateProps, {}&gt; {
  
      constructor(props: CreateProps) {
  
          super(props);
      }
  
      public render() {
          return &lt;div&gt;
              &lt;h1&gt;Create&lt;/h1&gt;
              &lt;form className="WelcomeForm"&gt;
                  &lt;input name="Date" /&gt;
                  &lt;button onClick={() =&gt; { this.submit() }}&gt;Save&lt;/button&gt;
              &lt;/form&gt;
          &lt;/div&gt;;
      }
  
      submit() {
          this.props.router.push('/list');
      }
  }
  </code></pre>