skip to Main Content

Javascript – Try to get value from URL in NextJS

I trying to put value in url and trying to extract value in search.js with router, but I'm getting this error: TypeError: Cannot read properties of undefined (reading 'q') <form onSubmit={handleSubmit}> <input type="text" placeholder="Search..." value={searchValue} onChange={(e) => setSearchValue(e.target.value)} class="w-full px-4…

VIEW QUESTION
Back To Top
Search