【发布时间】:2022-01-06 02:44:23
【问题描述】:
我刚开始学习 NextJS。我正在将我的旧项目移至 NextJS。我正在使用react-router-dom,我想知道如何在 NextJS Pages 中执行以下方法?
<Route path={['/','/search/:search?','/top_sold','/recent_added',]} exact component={Home} />
<Route path='/faq/:section?' component={FAQ} />
<Route path={['/client/:username?/:type?/:search?']} component={Profile} />
感谢您的帮助。
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
标签: reactjs next.js react-router-dom