diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-15 19:20:04 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-15 19:20:04 +0530 |
commit | e21a1c15a2e4bf3e51cdd7a5671bbfee5837ef13 (patch) | |
tree | bfeaa64c1d2ac00570d104ae9ee0e60720d55ba5 /src/components/Header | |
parent | 4f67c1cca24ac93f5e8b7a9108c028e6c2794d74 (diff) |
Using react-router to switch pages
Diffstat (limited to 'src/components/Header')
-rw-r--r-- | src/components/Header/Header.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index 5fb5104..a1bd097 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -7,6 +7,7 @@ */ import React from "react"; +import {Link} from "react-router-dom"; import "./Header.scss"; const Header = () => { @@ -18,10 +19,8 @@ const Header = () => { </div> <div className={"navBar"}> <nav> - <a href="https://nhentai.net">Link1</a> - <a href="https://youtube.com">Link2</a> - <a href="https://google.com">Link3</a> - <a href="https://github.com">Link4</a> + <Link to="/">Home</Link> + <Link to="/BillingPage">BillingPage</Link> </nav> </div> </div> |