import React, { Component } from "react"; import { Link } from "react-router-dom"; import { FacebookLoginButton, InstagramLoginButton } from "react-social-login-buttons"; class SignInForm extends Component { constructor() { super(); this.state = { email: "", password: "" }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { let target = event.target; let value = target.type === "checkbox" ? target.checked : target.value; let name = target.name; this.setState({ [name]: value }); } handleSubmit(event) { event.preventDefault(); console.log("The form was submitted with the following data:"); console.log(this.state); } render() { return (
{" "} Create an account
alert("Hello")} />
alert("Hello")} />
); } } export default SignInForm;