Skip to content

Commit 73a8d9c

Browse files
Update preinit.md 📜 (#6938)
Fix very minor typo
1 parent 04b5d44 commit 73a8d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react-dom/preinit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `preinit` function is currently only available in React's Canary and experim
2020
`preinit` lets you eagerly fetch and evaluate a stylesheet or external script.
2121

2222
```js
23-
preinit("https://example.com/script.js", {as: "style"});
23+
preinit("https://example.com/script.js", {as: "script"});
2424
```
2525

2626
</Intro>

0 commit comments

Comments
 (0)