From the source
Vercel migrated the code search tool Grep from Create React App to Next.js, using React Server Components to improve initial page load speed while preserving the quick navigation feel of a single-page app.
The migration involved conditional rendering of the search bar in the header versus the homepage to avoid layout shift, URL-based state management to keep search input in sync across pages, and server-side data fetching with TanStack Query for instant search results.






