Skip to content
 
 

Repository files navigation

useSWR库源码学习

调试前准备

  1. 连接到全局,实时编译
# 连接到全局
npm link
# 下载依赖
yarn
# 开启watch,编辑源代码实时编译
yarn watch
  1. 进入示例项目,连接
cd example/basic
# 下载依赖
yarn
# 将swr、react、react-dom链接到外层目录,保持react版本一致
npm link swr
npm link react
npm link react-dom 
# 执行dev
yarn dev

👉 lhz960904/blog#14

About

🧐useSWR hook源码学习,附详细注释。

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages