Last active
August 22, 2019 08:04
-
-
Save DZuz14/dd0ed263b5725bf40e77d12bfa5bd1e6 to your computer and use it in GitHub Desktop.
User Profile Form, No Action Creator.
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 { submitProfileForm } from '../actions/profile-form'; | |
export default class ProfileForm extends Component { | |
handleSubmit = e => { | |
e.preventDefault(); | |
// Emit the action here!!! | |
}; | |
render() { | |
return ( | |
<form onSubmit={this.handleSubmit}> | |
<input type="text" placeholder="Full Name" name="full-name" /> | |
<input type="email" placeholder="[email protected]" name="email" /> | |
<input | |
type="text" | |
placeholder="https://linkedin.com/274482392" | |
name="linked-in-profile" | |
/> | |
<button type="submit">Save</button> | |
</form> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment