Learning React: A Hands-On Guide... code not working


Is there an errata for the book Learning React: A Hands-On Guide to Building Web Applications Using React and Redux, 2/e? On page 99 of the book, the code listed there doesn’t work when simply copied and pasted to a new html doc, because there’s an extra semi-colon there after document.querySelector("#container"):

<Circle bgColor="#F9C240" />


The errata is listed here: https://www.kirupa.com/react/errata.htm

What you’ve found is a new one! I’ll be sure to get that added as a new item that needs to be documented and fixed in a future printing.



That’s what you get for using semicolons in JS, Kirupa! :drool: