Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get values form query params in next js

import { useRouter } from 'next/router';
const { query } = useRouter();
console.log(query.search) // for www.abc.com?search=xyz
 
PREVIOUS NEXT
Tagged: #values #form #query #params #js
ADD COMMENT
Topic
Name
8+6 =