English 中文(简体)
增加新页
原标题:Adding new pages

I m new with Next js, and I m Plus a new page, I only make a rafter pages within the src/app, 然后我添加文件dash板.tsx,但我试图去http:// localhost:3000/dash板。 我有这个问题:

http://www.un.org/Depts/DGACM/index_french.htm

为什么?

“entergraph

最佳回答

名录的基本文档为<代码>index.tsx。

<><>Edit>/strong>

正如另一个答复所指出的,你正在使用“密码”和“准则>的夹号”。

页: 1

(如前文所述,pages/dash板/index.tsx——然而,如果您在Next 13或选择退出该笔记本,则适用该编码)。

问题回答

看来,你正在使用第13号皇家法令的目录。 http:// localhost:3000/dashpad/code。 档案结构的工作应当

app/dash板/page.tsx

dashboard = a folder
page.tsx = file, the page content, basically what you have in dashboard.tsx put it in this file

https://blog.logrocket.com





相关问题
How to use one react app into another react app?

I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...

how to get selected value in Ant Design

I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...

热门标签