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