Create Form using React Class Component Example
import React, { Component } from 'react' export class Databind extends Component { constructor(props) { super(props); this.state = { username: '', password: '', passwordConfirmation: '', email: '', errors: [] }; } displayForm() { return ( <div> Username: <input type="text" /><br /> Password: <input type="text" /><br /> Password Confirmation: <input type="text" /><br /> Email: <input type="text" /><br /> <br /> <button>Submit</button> </div> ); } render() { return ( <div className="App"> Create Account <hr /> {this.displayForm()} </div> ) } } export default Databind