查看: 103|回复: 0

Next.js Tutorials All In One

[复制链接]

4

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2010-12-10
发表于 2022-7-31 22:26:00 | 显示全部楼层 |阅读模式

Next.js Tutorials All In One

{
  "scripts": {
    "dev": "next dev",
    "start": "next start",
    "build": "next build",
    "export": "next export",
    "lint-auto-fix": "next lint --fix",
    "lint": "next lint"
  },
}

https://nextjs.org/learn/basics/create-nextjs-app

Pages

In Next.js, a page is a React Component exported from a .js, .jsx, .ts, or .tsx file in the pages directory.
Each page is associated with a route based on its file name.

路由映射关系

pages/about.js => /about/

function About() {
  return <div>About</div>
}

export default About

https://nextjs.org/docs/basic-features/pages

refs

https://www.cnblogs.com/xgqfrms/p/14406311.html

https://www.youtube.com/playlist?list=PL4cUxeGkcC9g9gP2onazU5-2M-AzA8eBw



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:dzh188@hotmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部