[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.
This commit is contained in:
Ronald Portier
2022-08-21 12:18:39 +02:00
committed by Joseph Caburnay
parent 9fe8e93980
commit de84075c11
+4
View File
@@ -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