diff --git a/examples/preact/src/App.tsx b/examples/preact/src/App.tsx index e003599..4342893 100644 --- a/examples/preact/src/App.tsx +++ b/examples/preact/src/App.tsx @@ -5,6 +5,7 @@ import type { JSX } from 'preact/jsx-runtime'; interface TodoItem { id: number; message: string; + done: boolean; } interface TodoListItemProps { @@ -13,10 +14,9 @@ interface TodoListItemProps { } function TodoListItem({ item, setList }: TodoListItemProps): JSX.Element { - const [done, setDone] = useState(false); return (