File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments