Skip to content

Commit 4818c44

Browse files
committed
Fixed 11 solution
1 parent ee024ff commit 4818c44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/03-hooks/11-use-state.solution.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { useState } from "react";
22

3+
type Tag = {
4+
id: number;
5+
value: string;
6+
};
7+
38
export const Tags = () => {
4-
const [tags, setTags] = useState([]);
9+
const [tags, setTags] = useState<Tag[]>([]);
510
return (
611
<div>
712
{tags.map((tag) => {

0 commit comments

Comments
 (0)