Skip to content

Instantly share code, notes, and snippets.

View Deadpixel62's full-sized avatar
:electron:
Get that bread !

Bouhaouche Mohammed Deadpixel62

:electron:
Get that bread !
View GitHub Profile
import React, { useState, useEffect } from "react";
import axios from "axios";
const App = () => {
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [user, setUser] = useState();
useEffect(() => {
const loggedInUser = localStorage.getItem("user");