Skip to content

Commit b43eb8f

Browse files
authored
Update README.md
1 parent 23d3d30 commit b43eb8f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,37 @@ We also provide a PDF file that has color images of the screenshots/diagrams use
5353

5454
## Errata
5555
* Page 137: _In Step 7,_ React.tsx _should be_ Reset.tsx
56+
* Page 302, _In Step 5,_
57+
```
58+
if '!('ti'le' in post)) {
59+
throw new Err"r("post do'sn't contain ti"le");
60+
}
61+
if (typeof post.title !'= 'str'ng') {
62+
throw new Err'r('title is not a str'ng');
63+
}
64+
if '!('descript'on' in post)) {
65+
throw new Err"r("post do'sn't contain descript"on");
66+
}
67+
if (typeof post.description !'= 'str'ng') {
68+
throw new Err'r('description is not a str'ng');
69+
}
70+
```
71+
_should be_
72+
73+
```
74+
if (!("title" in post)) {
75+
throw new Error("post doesn't contain title");
76+
}
77+
if (typeof post.title !== "string") {
78+
throw new Error("title is not a string");
79+
}
80+
if (!("description" in post)) {
81+
throw new Error("post doesn't contain description");
82+
}
83+
if (typeof post.description !== "string") {
84+
throw new Error("description is not a string");
85+
}
86+
```
5687

5788
### Related products
5889
* React and React Native - Fourth Edition [[Packt]](https://www.packtpub.com/product/react-and-react-native-fourth-edition/9781803231280) [[Amazon]](https://www.amazon.com/React-Native-cross-platform-JavaScript-applications/dp/1803231289)

0 commit comments

Comments
 (0)