收藏本版 |訂閲

Next.js论坛 今日: 0|主題: 296|排名: 77 

  • Next.js 实战项目 | 青训营笔记
    .markdown-body { line-height: 1.75; font-weight: 400; font-size: 16px; overflow-x: hidden; color: rgba(37, 41, 51, 1) } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { line-height: 1.5; margin-top: 35px; margin-bottom: 10px; padding- ...
    049 冬寒 发表于 2023-2-5 Next.js论坛
  • Next.js @reduxjs/toolkit redux-persist 之 6.0.0 版本持久化处理
    集成公共状态管理插件 @reduxjs/toolkit react-redux redux-persist store 之 index.ts 代码 import { configureStore } from '@reduxjs/toolkit' import { useSelector, TypedUseSelectorHook, useDispatch, shallowEqual } from 'react-redux' import { persistStore, persistReducer } from 'redux-persist' impo ...
    026 走走道疯了 发表于 2023-1-31 Next.js论坛
  • Next.js 13 All In One
    Next.js 13 All In One Next.js 13docs https://beta.nextjs.org/docs app https://beta.nextjs.org/docs/app-directory-roadmap https://beta.nextjs.org/docs/routing/fundamentals CNA, create-next-app $ npx create-next-app@latest --experimental-app # or $ yarn create next-app --experimental-app # or $ p ...
    0106 红色猎鹰 发表于 2023-1-15 Next.js论坛
  • Next.js入门
    Next 特点 next 适合用于公司官网、文章类、电商类等对于 SEO 需求高的网站。 中后台管理系统无需 SEO 所以也不一定需要使用 Next 创建 Next.js 应用 npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn/tree/master/basics/learn-starter" cd nextjs-blog npm run dev 路由 N ...
    017 常春玉露 发表于 2023-1-10 Next.js论坛
  • BM15 删除有序链表中重复的元素-I
    题目描述 删除给出链表中的重复元素(链表中元素从小到大有序),使链表中的所有元素都只出现一次 代码参考 const deleteDuplicates = function (head) { //链表为空 if (head === null) return head //链表不为空 let p = head while (p.next != null) { if (p.val == p.next.val) { p.next = p.next. ...
    058 柳燕 发表于 2022-12-28 Next.js论坛
  • Next.js 开发商 Vercel 正式推出 Edge Functions
    Next.js 开发商 Vercel 正式推出 Edge Functions 来源: OSCHINA 编辑: 白开水不加糖 2022-12-17 07:49:24  0 Next.js 框架背后的开发商 Vercel 宣布推出 Edge Functions,现已面向所有客户全面推出 (GA)。 根据介绍,Vercel Edge Functions 是 JavaScript、TypeScript 或 WebAssembly functions, ...
    075 屈广林 发表于 2022-12-17 Next.js论坛
  • Link标签在Next.js框架下报错 use <Link legacyBehavior>?
    直接把a标签去掉,数据直接放Link标签就好了。     TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indonesian Slovak Czech Italian Slovenian Danish Japanese S ...
    042 我想好了再告诉你 发表于 2022-12-11 Next.js论坛
  • Next.js & React & MDX & markdown & front-matter & code highlight All In One
    Next.js & React & MDX & markdown & front-matter & code highlight All In One demos (🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章! refs https://github.com/xgqfrms/ssr-next/tree/master/src/next-ts-ssr-app https://nex ...
    034 北京平平 发表于 2022-12-3 Next.js论坛
  • Next.js render markdown file with code highlight All In One
    Next.js render markdown file with code highlight All In One https://nextjs.org/blog/markdown solutions mdx & prism https://colinhemphill.com/blog/fast-static-syntax-highlighting-for-mdx-in-nextjs https://mxd.codes/articles/syntax-highlighting-with-prism-and-next-js https://brandonzhang.cn/posts/next ...
    042 大雁飛過 发表于 2022-12-3 Next.js论坛
  • vercel deploy next.js error All In One
    vercel deploy next.js error All In One https://vercel.com/web-full-stack/nextjs-ssr/deployments bug [23:57:30.114] Cloning github.com/web-full-stack/nextjs-ssr (Branch: main, Commit: 4124ea8) [23:57:30.830] Cloning completed: 715.86ms [23:57:32.482] Restored build cache [23:57:32.519] Running "verc ...
    047 犀利评论 发表于 2022-12-2 Next.js论坛
  • how to using styled-components with Next.js All In One
    how to using styled-components with Next.js All In One styled-components $ npm i -S styled-components # OR $ yarn add styled-components plugin $ npm i -D babel-plugin-styled-components # OR $ yarn add -D babel-plugin-styled-components https://styled-components.com/ https://github.com/styled-com ...
    026 沭訸 发表于 2022-12-2 Next.js论坛
  • 油猴插件对next.js 开发的影响
    Unhandled Runtime Error TypeError: Cannot read properties of null (reading '1') 错误再现 # 1. 安装 next yarn add next # 2. 配置页面 pages # 3. 启动项目 ## 当启动项目的时候,发现 next 是依赖 react 和 react-dom 来运行的 # 4. 安装 react react-dom # 5. 安装完成后,运行页面发现错误 ## Unhandled Runti ...
    044 铁铮铮的男子汉 发表于 2022-11-30 Next.js论坛
  • Next.js dynamic router path bug All In One
    Next.js dynamic router path bug All In One markdown daynamic router bug why below code not work at all ? dynamic router path screenshot // [title].js export async function getStaticPaths() { const ids = await getPostsIds(); // ids[0] = // { // id: '/Users/xgqfrms-mm/Documents/githu ...
    065 猫猫的内衣馆 发表于 2022-11-30 Next.js论坛
  • Next.js & React component render twice bug All In One
    Next.js & React component render twice bug All In One error ❌ React.StrictMode https://github.com/facebook/react/issues/15074 https://reactjs.org/docs/strict-mode.html New Strict Mode Behaviors https://reactjs.org/blog/2022/03/29/react-v18.html#new-strict-mode-behaviors solution ✅ // next.con ...
    094 我这暴脾气 发表于 2022-11-16 Next.js论坛
  • using GitHub Actions & Vercel auto deploy Next.js SSR/SSG website All In One
    using GitHub Actions & Vercel auto deploy Next.js SSR/SSG website All In One 使用 GitHub Actions 和 Vercel 自动部署 Next.js SSR/SSG 网站 All In One vercel https://github.com/topics/vercel https://github.com/topics/nextjs demos https://nextjs-ssr.xgqfrms.xyz/ https://github.com/web-full-stack/nextj ...
    064 该账号已停用 发表于 2022-11-14 Next.js论坛
  • Next.js & MDX errors All In One
    Next.js & MDX errors All In One Server Error Error: Expected component TestComponent to be defined: you likely forgot to import, pass, or provide it. It’s referenced in your code at 17:1-17:17 in /Users/xgqfrms-mm/Documents/github/ssr-next/src/next-ts-ssr-app/pages/md/test.mdx This error happened ...
    060 平沙寒漠 发表于 2022-11-6 Next.js论坛
  • 十分钟上手 Next.js
    十分钟上手 Next.js 写代码的海怪 ​ 腾讯 前端工程师 ​关注他   28 人赞同了该文章 前言 Next.js 已经出来很久了,但是一直没机会看这个框架。 以前一直在用 create-react-app 来创建 React 项目,奈何 CRA 实在太难用了,今天花了点时间扫了一下 Next.js 的官网,发现用起来还挺简 ...
    0103 萧山知秋 发表于 2022-11-4 Next.js论坛
  • Next.js 13 All In One
    Next.js 13 All In One https://beta.nextjs.org/docs https://beta.nextjs.org/docs/app-directory-roadmap https://beta.nextjs.org/docs/routing/fundamentals $ npx create-next-app@latest --experimental-app # or $ yarn create next-app --experimental-app # or $ pnpm create next-app --experimental-app r ...
    08 取经归来 发表于 2022-11-4 Next.js论坛
  • Next.js Environment Variables All In One
    Next.js Environment Variables All In One .env .env.local DB_HOST=localhost DB_USER=myuser DB_PASS=mypassword // getStaticProps: // pages/index.js export async function getStaticProps() { const db = await myDB.connect({ host: process.env.DB_HOST, username: process.env.DB_USER, passw ...
    029 芊寻婚礼 发表于 2022-11-4 Next.js论坛
  • Next.js dynamic router All In One
    Next.js dynamic router All In One dynamic routes demos 单层动态路由 /pages/post/[pid].js import { useRouter } from 'next/router' const Post = () => { const router = useRouter() const { pid } = router.query return <p>ost: {pid}</p> } export default Post 多层嵌套动态路由 pages/post ...
    07 清新的晨风 发表于 2022-11-3 Next.js论坛
  • 下一頁 »

    快速發帖

    還可輸入 180 個字符
    您需要登錄後才可以發帖 登錄 | 立即注册

    本版積分規則

    相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

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

    在本版发帖返回顶部