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 673fc14 commit 2443e56Copy full SHA for 2443e56
1 file changed
src/content/learn/scaling-up-with-reducer-and-context.md
@@ -696,7 +696,7 @@ export default function TaskList() {
696
`tasks` 리스트를 업데이트하기 위해서 컴포넌트에서 context의 `dispatch` 함수를 읽고 호출할 수 있습니다.
697
698
```js {3,9-13}
699
-export default function AddTask() {
+export default function AddTask({ onAddTask }) {
700
const [text, setText] = useState('');
701
const dispatch = useContext(TasksDispatchContext);
702
// ...
@@ -785,7 +785,7 @@ export const TasksDispatchContext = createContext(null);
785
import { useState, useContext } from 'react';
786
import { TasksDispatchContext } from './TasksContext.js';
787
788
789
790
791
return (
0 commit comments