We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hooks
1 parent 0999799 commit 1592c89Copy full SHA for 1592c89
packages/react-tweet/src/hooks.ts
@@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'
4
import swr from 'swr'
5
import { type Tweet, TwitterApiError } from './api/index.js'
6
7
-// Avois an error when used in the pages directory where useSWR might be in `default`.
+// Avoids an error when used in the pages directory where useSWR might be in `default`.
8
const useSWR = ((swr as any).default as typeof swr) || swr
9
const host = 'https://react-tweet.vercel.app'
10
0 commit comments