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

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

You can find the code here: 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?


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

1 Like

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


1 Like

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