Skip to content

Instantly share code, notes, and snippets.

@DZuz14 DZuz14/user-profile.js
Last active Aug 22, 2019

Embed
What would you like to do?
User Profile Form, No Action Creator.
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="xyz@gmail.com" 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
You can’t perform that action at this time.