swr-devtools
A DevTools for SWR
This only supports SWR v1 or later versions.
How to use
Install the SWRDevTools extension
(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.**
```shell
npm install swr-devtools
# Install peerDependencies
npm install react swr
```
```jsx
import { createRoot } from "react-dom/client";
import { SWRDevTools } from "swr-devtools";
createRoot(document.getElementById("app")).render(
,
document.getElementById("app")
);
```
Packages
Online Demo
https://swr-devtools.vercel.app
LICENSE
MIT