import React from 'react'
import { Form } from 'react-advanced-form'
import { Input } from 'react-advanced-form-addons'
export default class Example extends React.Component {
// Make sure to return a Promise here
this.form.submit().then((submitState) => {
// This is called after the Promise of `this.handleSubmit` resolves/rejects
ref={form => this.form = form}
action={this.handleSubmit}>
<a href="#" onClick={this.handleClick}>Submit manually</a>