first commit
This commit is contained in:
commit
3d8c60ee00
41 changed files with 2836 additions and 0 deletions
12
src/components/NavLink.jsx
Normal file
12
src/components/NavLink.jsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { NavLink as Link } from "react-router-dom"
|
||||
|
||||
export const NavLink = ({ to, children }) => (
|
||||
<Link
|
||||
to={to}
|
||||
className={({ isActive, isPending }) =>
|
||||
isActive || isPending ? "selected" : ""
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
)
|
Reference in a new issue