This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { Redirect } from 'react-router' | |
export default class ContactForm extends Component { | |
constructor () { | |
super(); | |
this.state = { | |
fireRedirect: false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This doesn't have everything but it gives an idea of how the interfaces and decorator should be used. | |
interface LoginFormData { | |
username?: string; | |
password?: string; | |
} | |
interface LoginFormProps extends FormProps<LoginFormData, AppState> { | |
dispatch?: Dispatch<AppState>, | |
} |