项目
在 GitHub 查看
koba04/swr-devtools
关于
A DevTool for SWR
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文swr-devtools
A DevTools for SWR


This only supports SWR v1 or later versions.
How to use
Install the SWRDevTools extension
- Chrome
- Firefox
(SWR v1) Wrap your application in the SWRDevTools component
This instruction is only required with SWR v1
⚠️ If you use SWR v2 or later versions, you don't need to install swr-devtools and wrap your application. SWR Devtools does it for you.
npm install swr-devtools
# Install peerDependencies
npm install react swr
import { createRoot } from "react-dom/client";
import { SWRDevTools } from "swr-devtools";
createRoot(document.getElementById("app")).render(
<SWRDevTools>
<MainApp />
</SWRDevTools>,
document.getElementById("app")
);
Packages
| package | description |
|---|---|
| swr-devtools | A React component to inject your application |
| swr-devtools-extensions | A Chrome extension for the SWR DevTools |
| swr-devtools-panel | A React component for the SWR DevTools panel |
Online Demo
https://swr-devtools.vercel.app
LICENSE
探索相关项目
加载中…