Directories with the [slug] syntax (where "slug" can be any identifier) capture routes where part of the path is dynamic, like a product id.
The two id-specific pages below are both handled by the same page.js file under the [id] directory.