Skip to content

Commit 7c68172

Browse files
authored
Merge pull request #3906 from leburgeon/patch-9
Update part9d.md
2 parents 878d2ee + aa1d90d commit 7c68172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/9/en/part9d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ const App = () => {
713713
}
714714
```
715715
716-
It just works, there are no complaints about types! When we hover over the *event.target.value*, we see that it is indeed a string, just what is the expected parameter of the *setNewNote*:
716+
It just works, there are no complaints about types! When we hover over the *event.target.value*, we see that it is indeed a string, just what is expected for the parameter of *setNewNote*:
717717
718718
![vscode showing variable is a string](../../images/9/67new.png)
719719
@@ -749,7 +749,7 @@ It does not quite work, there is an Eslint error complaining about implicit any:
749749
750750
![vscode error event implicitly has any type](../../images/9/68new.png)
751751
752-
TypeScript compiler has now no clue what is the type of the parameter, so that is why the type is the infamous implicit any that we want to [avoid](/en/part9/first_steps_with_type_script#the-horrors-of-any) at all costs. The React TypeScript cheatsheet comes again to rescue, the chapter about
752+
TypeScript compiler now has no clue what the type of the parameter is, this is why the type is the infamous implicit any that we want to [avoid](/en/part9/first_steps_with_type_script#the-horrors-of-any) at all costs. The React TypeScript cheatsheet comes to the rescue again, the chapter about
753753
[forms and events](https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/forms_and_events) reveals that the right type of event handler is *React.SyntheticEvent*.
754754
755755
The code becomes

0 commit comments

Comments
 (0)