We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9a459 commit 465d0e9Copy full SHA for 465d0e9
src/content/learn/managing-state.md
@@ -890,7 +890,7 @@ const initialTasks = [
890
import { useState, useContext } from 'react';
891
import { useTasksDispatch } from './TasksContext.js';
892
893
-export default function AddTask() {
+export default function AddTask({ onAddTask }) {
894
const [text, setText] = useState('');
895
const dispatch = useTasksDispatch();
896
return (
0 commit comments