Added Functionality for Header and react router dom

This commit is contained in:
Sarim-Sheikh-2003
2023-10-28 17:07:11 -06:00
parent 87278f4c56
commit ecd1b97c28
19 changed files with 161 additions and 75 deletions

8
src/Header/OpenPage.js Normal file
View File

@ -0,0 +1,8 @@
import { useNavigate } from "react-router-dom";
export default function OpenPage(arg) {
console.log(arg);
const navigate = useNavigate();
navigate(arg);
};