mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixing up step 2-4 exercise
This commit is contained in:
@@ -20,13 +20,14 @@ export class TodoApp extends React.Component<any, Store> {
|
||||
return (
|
||||
<TodoContext.Provider
|
||||
value={{
|
||||
...this.state,
|
||||
addTodo: this._addTodo,
|
||||
remove: this._remove,
|
||||
complete: this._complete,
|
||||
clear: this._clear,
|
||||
setFilter: this._setFilter,
|
||||
edit: this._edit
|
||||
...this.state
|
||||
// TODO: put the missing functions into the context value
|
||||
// addTodo: this._addTodo,
|
||||
// remove: this._remove,
|
||||
// complete: this._complete,
|
||||
// clear: this._clear,
|
||||
// setFilter: this._setFilter,
|
||||
// edit: this._edit
|
||||
}}
|
||||
>
|
||||
<Stack horizontalAlign="center">
|
||||
|
||||
Reference in New Issue
Block a user