Skip to content

Instantly share code, notes, and snippets.

View ArjunAranetaCodes's full-sized avatar
🎯
Focusing

Arjun Araneta ArjunAranetaCodes

🎯
Focusing
  • MoreCodes
  • Sydney, Australia
View GitHub Profile
@ArjunAranetaCodes
ArjunAranetaCodes / Login.js
Created November 25, 2018 14:29
Update for login validation
import React, { Component } from 'react'
import { login } from './UserFunctions'
class Login extends Component {
constructor() {
super()
this.state = {
email: '',
password: '',
error: '',
@ArjunAranetaCodes
ArjunAranetaCodes / Register.js
Created November 25, 2018 13:57
Update on onSubmit function for validation of email and password
import React, { Component } from 'react'
import { register } from './UserFunctions'
class Register extends Component {
constructor() {
super()
this.state = {
first_name: '',
last_name: '',
email: '',
@ArjunAranetaCodes
ArjunAranetaCodes / Profile.js
Created November 23, 2018 02:02
Usage of getProfile route for MERN - MongoDB + Express + React + NodeJS - Login Register
import React, { Component } from 'react'
import { getProfile } from './UserFunctions'
class Profile extends Component {
constructor() {
super()
this.state = {
first_name: '',
last_name: '',
email: '',
@ArjunAranetaCodes
ArjunAranetaCodes / index.ejs
Last active August 28, 2018 00:00
Changes for including static files (css, js)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Login Register</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link rel="stylesheet"
href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">