Advertisement
EntropyStarRover

Navigation.js

Nov 17th, 2021
609
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import { BrowserRouter as Router, Routes, Route, NavLink } from "react-router-dom";
  3. import styles from "./Navigation.module.css"
  4.  
  5.  
  6. export default function Navigation() {
  7.   return (
  8.     <Router>
  9.         <nav>
  10.             <ul className={styles.topNav}>
  11.                 <li><NavLink to="/">Начало</NavLink></li>
  12.            
  13.                 <li><NavLink to="/login">Вход</NavLink></li>
  14.                 <li><NavLink to="/register">Регистрация</NavLink></li>
  15.                 <li><NavLink to="/profile">Профил</NavLink></li>
  16.                 <li><NavLink to="/create-record">Добави бира</NavLink></li>
  17.                 <li><NavLink to="/beers/beerId">Bира</NavLink></li>
  18.             </ul>
  19.           </nav>      
  20.  
  21.    
  22.     </Router>
  23.   );
  24. }
  25.  
Advertisement
RAW Paste Data Copied
Advertisement