From 7afb81f16d90dd69a2bed67dc3c5e186cbefe80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Wed, 27 Feb 2019 12:26:01 +0100 Subject: [PATCH 1/2] fix: typo in step1-07 readme --- step1-07/demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step1-07/demo/README.md b/step1-07/demo/README.md index ed52d74..c5f3371 100644 --- a/step1-07/demo/README.md +++ b/step1-07/demo/README.md @@ -28,7 +28,7 @@ Let's start off in the TodoList, as that has the most data flow, up and down. Th ### Writing TodoListProps -Looking at our `TodoApp` we know that `TodoList` has three props, `filter`, `todos`, and `filter`. We'll start by creating and interface that represents this component's props called `TodoListProps`. +Looking at our `TodoApp` we know that `TodoList` has three props, `filter`, `todos`, and `complete`. We'll start by creating an interface that represents this component's props called `TodoListProps`. ```tsx interface TodoListProps { From 74043dfd8b53b3e3899b4f8d52a9dba1124aad42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Wed, 27 Feb 2019 12:36:35 +0100 Subject: [PATCH 2/2] docs: step1-07 repetition --- step1-07/demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step1-07/demo/README.md b/step1-07/demo/README.md index c5f3371..eddeaf3 100644 --- a/step1-07/demo/README.md +++ b/step1-07/demo/README.md @@ -141,7 +141,7 @@ export class TodoApp extends React.Component<{}, { todos: Todos; filter: FilterT ### Writing TodoListItemProps -Jumping down to the TodoListItem, as we start to write the TodoListItemProps we realize that two of the props, `label` and `completed` have already been defined in the `TodoItem` interface in `TodoApp.types`. So in the same way we can reuse individual types (`FilterTypes`), we can reuse, and extend upon entire interfaces. +Jumping down to the TodoListItem, as we start to write the TodoListItemProps we realize that two of the props, `label` and `completed` have already been defined in the `TodoItem` interface in `TodoApp.types`. So in the same way we can reuse individual types (`FilterTypes`), and extend upon entire interfaces. ```tsx interface TodoListItemProps extends TodoItem {