handleInputChange(event) {
        const target = event.target;
        const name = target.name;

        this.setState({
            [name]: target.value
        });
    }
// Updates the state of component with data entered into form
Updates the state of component with data entered into form
Updates the state of component with data entered into form
handleInputChange(event) {
        const target = event.target;
        const name = target.name;
        this.setState({
            [name]: target.value
        });
    }
handleInputChange ( event ) { const target = event . target ; const name = target . name ; this . setState ( { [ name ] : target . value } ) ; }
Updates the state of component with data entered into form
Updates the state of component with data entered into form