Skip to content

Instantly share code, notes, and snippets.

View garoqui's full-sized avatar

Alejandro Quiroga garoqui

View GitHub Profile
@garoqui
garoqui / Login.css
Created August 21, 2018 23:58
Login React
.alert
{
display:flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
align-items: center;
height: 50px;
margin-top:40px;
}
@garoqui
garoqui / Navigation with Role React
Created August 21, 2018 23:44
Conditional Router React and localStorage
import React, { Component } from 'react';
import './Navigation.css';
import { Link} from 'react-router-dom';
import store from '../store'
class Navigation extends Component
{
constructor(props)
{
super(props)
this.state={