
SE Radio 557: Timothy Beamish on React and Next.js
Software Engineering Radio - the podcast for professional software developers
00:00
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.
Transcript
Play full episode