
Crystal的NextJS学习
CrystalAngelLee
GitHub:https://github.com/CrystalAngelLee
LinkdIn:https://www.linkedin.com/in/%E5%98%89%E8%90%B1-%E6%9D%8E-b56531149/
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
NextJS-集成Redux
First安装相应依赖yarn add redux react-reduxSecond创建Redux目录结构nextProject +- .next +- node_modules +- pages +- redux +- actions +- reducersDEMOredux/actions/userAction.jsexport const LOGOUT = 'LOGOUT';// action creactors原创 2020-09-19 00:42:11 · 1130 阅读 · 1 评论 -
NextJS-集成Koa
第一步安装相应模块yarn add koa koa-router第二步在根目录下创建server.jsconst next = require('next');const Koa = require('koa');// initialize nextjs instance and expose requese handlerconst dev = process.env.NODE_ENV !== 'production';const nextApp = next({ dev });c原创 2020-09-18 23:08:09 · 831 阅读 · 0 评论 -
NextJS-集成antd
nextJS 版本: 9.5.3方法一: 使用CSS加载第一步: 添加相应组件yarn add antd babel-plugin-import第二步新建.babelrc 文件{ "presets": ["next/babel"], "plugins": [ [ "import", { "libraryName": "antd" } ] ]}第三步_app.js 文件中引入antd样式文件import.原创 2020-09-17 23:05:40 · 2459 阅读 · 0 评论