# Vercel — Migrating Grep from Create React App to Next.js

- Company: Vercel (vercel.com)
- Announced: 2025-04-14T13:00:00+00:00
- Category: not stated
- Coverage: not counted
- Announcement: no
- Group: routine
- Source: https://vercel.com/blog/migrating-grep-from-create-react-app-to-next-js
- Record: https://forck.live/items/20886-migrating-grep-from-create-react-app-to-next-js
- Subject: v0 / AI SDK / AI Gateway

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.

## Evidence

Verbatim from https://vercel.com/blog/migrating-grep-from-create-react-app-to-next-js:

> Here's how we migrated Grep to Next.js—keeping the interactivity of a SPA, but with the performance improvements from React Server Components.

---

Record: https://forck.live/items/20886-migrating-grep-from-create-react-app-to-next-js
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
