PHP Classes

File: pizzerine/src/components/Admin/AdminLogout.js

Recommend this page to a friend!
  Classes of Hillary Kollan   React Laravel Stripe MailJet Pizza Ordering   pizzerine/src/components/Admin/AdminLogout.js   Download  
File: pizzerine/src/components/Admin/AdminLogout.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: React Laravel Stripe MailJet Pizza Ordering
Web application to process orders of Pizza
Author: By
Last change:
Date: 1 year ago
Size: 333 bytes
 

Contents

Class file image Download
import React, { useEffect } from 'react' import { useNavigate} from 'react-router-dom'; function AdminLogout() { let navigate = useNavigate(); useEffect(() => { localStorage.setItem('pizzeria.sanctum', '') navigate('/'); }, []) return ( <div>Logging Out</div> ) } export default AdminLogout