Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jun 24, 2021
1 parent 0c66295 commit 1b96f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ The team behind Next.js has created a React hook for data fetching called [**SWR
```jsx
import useSWR from 'swr'

const fetcher = url => fetch(url).then(res => res.json());
const fetcher = (url) => fetch(url).then((res) => res.json())

function Profile() {
const { data, error } = useSWR('/api/user', fetcher)
Expand Down

0 comments on commit 1b96f90

Please sign in to comment.