docs: add jsdoc for IS_BROWSER (#1991)

This commit is contained in:
Reed von Redwitz
2023-10-31 18:49:18 +01:00
committed by GitHub
parent 5de34aac93
commit ded71a934f
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -183,7 +183,8 @@ An error occurred during route handling or page rendering. ReferenceError: Event
....
```
Use the `IS_BROWSER` flag as a guard to fix the issue:
Use the [`IS_BROWSER`](https://deno.land/x/fresh/runtime.ts?doc=&s=IS_BROWSER)
flag as a guard to fix the issue:
```tsx islands/my-island.tsx
import { IS_BROWSER } from "$fresh/runtime.ts";