2min chapter

Software Engineering Radio - the podcast for professional software developers cover image

SE Radio 557: Timothy Beamish on React and Next.js

Software Engineering Radio - the podcast for professional software developers

CHAPTER

How to Create Dynamic Routes in a React App

The dynamic route is the variable that represents winter and or summer in next JS. You can do that by updating your file folder structure using a special piece of syntax, just checking some square brackets around out folder to indicate that that folder is going to have a dynamic property about it. So maybe maybe you've named that folder square bracket season ending square bracket, then your component is going to get a season variable coming in. And if it's not, you can throw up an error saying you've picked the wrong season.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode