From de84075c11d3f9e79e7af76a3f0856617d62b478 Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Sun, 21 Aug 2022 12:18:39 +0200 Subject: [PATCH] [DOC] Add a notice to step 9 There are two deleteTask functions in step 9. This will make sure the developer/student does not miss one of those. --- doc/learning/tutorial_todoapp.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/learning/tutorial_todoapp.md b/doc/learning/tutorial_todoapp.md index 81b12ead..17a85a55 100644 --- a/doc/learning/tutorial_todoapp.md +++ b/doc/learning/tutorial_todoapp.md @@ -502,6 +502,10 @@ deleteTask(task) { Notice that the `onDelete` prop is defined with a `.bind` suffix: this is a special suffix that makes sure the function callback is bound to the component. +Notice also that we have two functions named `deleteTask`. The one in the Task +component just delegates the work to the Root component that owns the task list +via the `onDelete` property. + ## 10. Using a store Looking at the code, it is apparent that all the code handling tasks is scattered