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.
saved by
related reading
- Making Sense of React Server Components • Josh W. Comeaujoshwcomeau.com
- Getting Started: Layouts and Pages | Next.jsnextjs.org
- App Router: Streaming | Next.jsnextjs.org
- App Router: Navigating Between Pages | Next.jsnextjs.org
- How Mozilla’s Rust dramatically improved our server-side performance | Figma Blogfigma.com
- Next.js Docsnextjs.org
- Pages Router | Next.jsnextjs.org
- RSC From Scratch. Part 1: Server Components · reactwg server-components · Discussion #5github.com
- One Year with Next.js App Router — Why We're Moving Onpaperclover.net
- Getting Started: Error Handling | Next.jsnextjs.org
- React Foundations | Next.jsnextjs.org
- Implementing React from scratchrob.directory