October 2019
Intermediate to advanced
426 pages
11h 49m
English
Next, we are going to use the useCurrentRoute Hook to access information about the current route/URL. We are going to use this Hook to implement a footer, which will display the href value of the current route.
Let's get started implementing the footer now:
import React from 'react'import { useCurrentRoute } from 'react-navi'
export default function FooterBar () {
const { url } = useCurrentRoute() ...Read now
Unlock full access