Skip to content

Commit edfedc6

Browse files
committed
test
1 parent f9b6ab8 commit edfedc6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/hooks/useLoadData.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ import { type Dispatch, useEffect } from "react";
33
import normalizeString from "../util/normalizeString";
44

55
export default function useLoadData(
6-
dispatch: Dispatch<{ type: "load-data"; wordPack: readonly string[] }>,
6+
dispatch: Dispatch<{ type: "load-data"; wordPack: readonly string[] }>
77
) {
88
useEffect(() => {
9+
fetch("https://unpkg.com/naughty-words@1.2.0/en.json")
10+
.then((response) => response.json())
11+
.then((data) => console.log(data));
912
fetch("fruits.txt")
1013
.then((response) => response.text())
1114
.then((text) => {

0 commit comments

Comments
 (0)