mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-07-10 13:17:13 -06:00
Added Functionality for Header and react router dom
This commit is contained in:
8
src/Header/OpenPage.js
Normal file
8
src/Header/OpenPage.js
Normal file
@ -0,0 +1,8 @@
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
export default function OpenPage(arg) {
|
||||
console.log(arg);
|
||||
const navigate = useNavigate();
|
||||
|
||||
navigate(arg);
|
||||
};
|
Reference in New Issue
Block a user