How to create dynamic route in gatsby

后端 未结 2 864
一整个雨季
一整个雨季 2020-12-01 18:09

I have setup gatsby project using this link. It is working correctly.

Now I know how to create route by defining the component inside the pages

2条回答
  •  时光说笑
    2020-12-01 19:10

    You can use gatsby-plugin-create-client-paths. It uses matchPath. For more info check

    1. https://www.gatsbyjs.org/docs/gatsby-internals-terminology/#matchpath
    2. https://www.gatsbyjs.org/packages/gatsby-plugin-create-client-paths/

提交回复
热议问题