Skip to content

Commit

Permalink
docs: hide the instruction for SWR v1
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Nov 24, 2023
1 parent 810b914 commit beec53a
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

0 comments on commit beec53a

Please sign in to comment.