We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9b6ab8 commit edfedc6Copy full SHA for edfedc6
1 file changed
src/hooks/useLoadData.ts
@@ -3,9 +3,12 @@ import { type Dispatch, useEffect } from "react";
3
import normalizeString from "../util/normalizeString";
4
5
export default function useLoadData(
6
- dispatch: Dispatch<{ type: "load-data"; wordPack: readonly string[] }>,
+ dispatch: Dispatch<{ type: "load-data"; wordPack: readonly string[] }>
7
) {
8
useEffect(() => {
9
+ fetch("https://unpkg.com/naughty-words@1.2.0/en.json")
10
+ .then((response) => response.json())
11
+ .then((data) => console.log(data));
12
fetch("fruits.txt")
13
.then((response) => response.text())
14
.then((text) => {
0 commit comments