Answers for "how to pass data in params or query in nextjs for api"

2

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
Posted by: Guest on April-17-2021

Code answers related to "how to pass data in params or query in nextjs for api"

Code answers related to "Javascript"

Browse Popular Code Answers by Language