UNPKG

@mahjongg/mern-mvc

Version:

A CLI that will build a MERN stack application using create-react-app

25 lines (22 loc) 718 B
module.exports = `import React from 'react'; import "./style.css"; import {Link} from 'react-router-dom'; const SignUp = (props)=> { return ( <div> <h1>SIGN UP</h1> <Link to = "/" >Go to sign in</Link> <form> <label>Email</label><br/> <input value = {props.username} onChange = {props.handleChange} name='username' type='email' placeholder = 'example@email.com'/> <br /> <label>Password</label><br/> <input name='password' type='password' value = {props.password} onChange = {props.handleChange} /> <br /> <button type = 'submit' name = "/auth/signup" onClick = {props.handleSubmit}>Sign Up</button> </form> </div> ); }; export default SignUp;`;