swr-devtools
v1.3.2
Published
A React component for SWR DevTools
Downloads
30,925
Readme
swr-devtools
Install
npm install swr-devtools
# Install peerDependencies
npm install react swr
This only supports SWR v1 or later versions.
How to use
Wrap your application in the SWRDevTools component
import { createRoot } from "react-dom/client";
import { SWRDevTools } from "swr-devtools";
createRoot(document.getElementById("app")).render(
<SWRDevTools>
<MainApp />
</SWRDevTools>
);
Install SWRDevTools from Chrome Web Store
https://chrome.google.com/webstore/detail/swr-devtools/liidbicegefhheghhjbomajjaehnjned