Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useParams react routing

import { useParams } from "react-router-dom"

export function Book() {
  const { id } = useParams()

  return (
    <h1>Book {id}</h1>
  )
}
Source by blog.webdevsimplified.com #
 
PREVIOUS NEXT
Tagged: #useParams #react #routing
ADD COMMENT
Topic
Name
1+3 =