Skip to content

Instantly share code, notes, and snippets.

View johnlaine1's full-sized avatar

John Laine johnlaine1

View GitHub Profile
@verticalgrain
verticalgrain / app.js
Last active April 26, 2022 15:37
React Router V4 Redirect after form submission
import React, { Component } from 'react'
import { Redirect } from 'react-router'
export default class ContactForm extends Component {
constructor () {
super();
this.state = {
fireRedirect: false
}
}
import React from 'react';
import { Field } from 'formik';
import AceEditor from 'react-ace';
import 'brace/mode/ejs';
import 'brace/theme/textmate';
export const EjsForm = ({ name }) => (
<Field name={name}>