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


#1

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"):

ReactDOM.render(
<div>
<Circle bgColor="#F9C240" />
</div>,
document.querySelector("#container");
);


#2

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.

Thanks,
Kirupa


#3

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