✳flâneur — a map of the web's best reading
Building a single-page application with Next.js and React Router
colinhacks.com · 1,747 words · saved by 1 readers
Next.js is awesome. React Router is awesome. Why is it so hard to get them to play nice?
Building a single-page application with Next.js and React Router Colin McDonnell About me Writing Open source Building a single-page application with Next.js and React Router Colin McDonnell @colinhacks updated March 7th, 2023 Update 2023 — Updated for Next.js 13, React Router 6, and React 18. Update 2022 — Next.js 13 now supports nested routes via the /app directory. However, it requires a server to render React Server Components, and thus doesn't qualify as a "single-page application" as defined in this post. I recently set out to implement a single-page application (SPA) on top of Next.js.
Explore this link on the map →saved by
related reading
- One Year with Next.js App Router — Why We're Moving Onpaperclover.net
- How Notion pulled itself back from the brink of failure | Figma Blogfigma.com
- Getting Started: Layouts and Pages | Next.jsnextjs.org
- Pages Router | Next.jsnextjs.org
- Getting Started: Layouts and Pages | Next.jsnextjs.org
- GitHub - emanuelefavero/next-js: A Next.js cheat sheet repository · GitHubgithub.com
- projects, claire wangclairebookworm.com
- Cursor Docs — Agent, Rules, MCP, Skills & CLIdocs.cursor.com
- App Router: Navigating Between Pages | Next.jsnextjs.org
- Making Sense of React Server Components • Josh W. Comeaujoshwcomeau.com
- Getting Started: Error Handling | Next.jsnextjs.org
- Getting Started: Linking and Navigating | Next.jsnextjs.org