Skip to content

Latest commit

 

History

History

swr-devtools

swr-devtools

npm version

A screenshot of SWR Devtools (light theme)

A screenshot of SWR Devtools (dark theme)

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

LICENSE

MIT