Skip to content

Commit

Permalink
docs: hide the instruction for SWR v1 (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Nov 24, 2023
1 parent 810b914 commit b22be75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ A DevTools for SWR

### (SWR v1) Wrap your application in the SWRDevTools component

<details>
<summary>This instruction is only required with SWR v1</summary>

**⚠️ 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
Expand All @@ -40,6 +43,9 @@ createRoot(document.getElementById("app")).render(
document.getElementById("app")
);
```

</details>

## Packages

| package | description |
Expand Down

1 comment on commit b22be75

@vercel
Copy link

@vercel vercel bot commented on b22be75 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

swr-devtools – ./

swr-devtools-koba04.vercel.app
swr-devtools-git-main-koba04.vercel.app
swr-devtools.vercel.app

Please sign in to comment.