[Gatsby Router] Create Pages At Build Time Using Static Navigation Component Programmatically #38351
Unanswered
wakaztahir
asked this question in
Ideas / Feature Requests
Replies: 1 comment
-
found something https://www.gatsbyjs.com/docs/reach-router-and-gatsby/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use Gatsby I want to generate pages statically and I have to write them individually by creating files
The benefit of react is however to use state and change content dynamically
Let's say this component exists in a file Parent.tsx in pages folder , so the path will be /parent , In this case gatsby will create two pages
That renders first and second child with path /parent/first-child and /parent/second-child respectively
My question is can this be done , This will make Gatsby navigation so much easier and so much better
With nested navigation , This will get complex and supporting it is necessary too
Beta Was this translation helpful? Give feedback.
All reactions