Links only with routes?

Hey guys, I`m newbie here, I want to know if links only works with routes.js? Because my app will have multiples pages, like more than 1000.

So I’ll separate by categories/folders like

/pages/category1/file1
/pages/category1/file2
/pages/category1/file3

/pages/category2/file2
/pages/category2/file3

and need to put all lines separated in routes.js?

Thanks!!

Check routes documentation, you can use one route for this where you can pass parameters to routes, e.g. /pages/:categoryId/:fileId/ and use async routes to load the required data based on category and file

1 Like

Thanks bro, saved my life about changing framework haha!!