Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

next js get gurrent page params

import { useRouter } from 'next/router'

const Index = () => {
  const router = useRouter()
  const {id} = router.query

  return(<div>{id}</div>)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #gurrent #page #params
ADD COMMENT
Topic
Name
8+4 =