swr-devtools
Version:
A React component for SWR DevTools
41 lines (26 loc) • 953 B
Markdown
# swr-devtools
[](https://badge.fury.io/js/swr-devtools)


### Install
```shell
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
```jsx
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](LICENSE.md)