Skip to content

Commit b0a4e60

Browse files
committed
docs: remove unused onAddTask prop from AddTask component
1 parent ea34014 commit b0a4e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/scaling-up-with-reducer-and-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ const initialTasks = [
12281228
import { useState } from 'react';
12291229
import { useTasksDispatch } from './TasksContext.js';
12301230

1231-
export default function AddTask({ onAddTask }) {
1231+
export default function AddTask() {
12321232
const [text, setText] = useState('');
12331233
const dispatch = useTasksDispatch();
12341234
return (

0 commit comments

Comments
 (0)