NextJS URL params like React-Router

前端 未结 5 1224
一整个雨季
一整个雨季 2021-02-19 06:56

I\'m a newbie to NextJS, It looks so good on the first impression. But after giving it a chance I\'ve faced some problems like URL routing with custom params like react-router.<

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-19 07:33

    I have been through the same issue, but I found this package, https://github.com/fridays/next-routes

    It works almost the same as react-router, I have tried it and it works for me.

提交回复
热议问题