# Why doesn't the code in Chapter 4 of Learning React work?

**URL:** <https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170>\
**Category:** Uncategorized\
**Created:** [November 25, 2019, 11:41pm UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170 "2019-11-25T23:41:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flinnt](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Flinnt](https://forum.kirupa.com/u/Flinnt)\
**Post date:** [November 25, 2019, 11:41pm UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170/1 "2019-11-25T23:41:15Z")

</div>

And why isn’t there downloadable code as is the case with most other decent programming books?

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 26, 2019, 6:24am UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170/2 "2019-11-26T06:24:52Z")

</div>

You can find the code here: [https://github.com/kirupa/kirupa/tree/master/reactjs](https://github.com/kirupa/kirupa/tree/master/reactjs)

Regarding the error in Chapter 4, what is the error you are seeing? What is the console output showing?

😀

---

<div class="post-metadata">

**Author:** ![LeBeva](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@LeBeva](https://forum.kirupa.com/u/LeBeva)\
**Post date:** [December 2, 2019, 3:51am UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170/3 "2019-12-02T03:51:41Z")

</div>

Hi @kirupa . In regards to the code not working in Chapter 4 (as mentioned by @Flinnt), I think this individual is referring to line 49 missing from the text (more specifically, `style={letterStyle}`). Once I added this all looked good. Cheers!

[styling\_react - Line 49](https://github.com/kirupa/kirupa/blob/master/reactjs/styling_react.htm#L49)

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [December 2, 2019, 6:44am UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170/4 "2019-12-02T06:44:28Z")

</div>

Thanks for pointing that out, @LeBeva ! I completely failed to realize that might be the issue, despite it being something I documented here: [https://www.kirupa.com/react/errata.htm](https://www.kirupa.com/react/errata.htm)

😛

---

<div class="post-metadata">

**Author:** ![LeBeva](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@LeBeva](https://forum.kirupa.com/u/LeBeva)\
**Post date:** [December 2, 2019, 3:20pm UTC](https://forum.kirupa.com/t/why-doesnt-the-code-in-chapter-4-of-learning-react-work/641170/5 "2019-12-02T15:20:48Z")

</div>

Awesome … that’s a handy link - thank you!
