Click in order · Next.js course · Module 5: Rendering Strategies
generateStaticParams Syntax
Arrange the generateStaticParams function syntax in Next.js
Items to click
- generateStaticParams()
- { return
- export async function
- posts.map(p => ({ slug: p.slug }))
- }
You can check the correct answer by solving this task in the CodeWorlds game.