import React from 'react'
import { Form } from 'react-advanced-form'
import { Input } from 'react-advanced-form-addons'
export default class Example extends React.Component {
handleSubmitEnd = ({ res, serialized, fields, form }) => {
<Form onSubmitEnd={this.handleSubmitEnd}>
<Input name="username" required />
<button type="submit">Submit</button>