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

**URL:** <https://forum.kirupa.com/t/learning-react-a-hands-on-guide-code-not-working/639412>\
**Category:** programming\
**Created:** [February 14, 2019, 10:02pm UTC](https://forum.kirupa.com/t/learning-react-a-hands-on-guide-code-not-working/639412 "2019-02-14T22:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renato\_Jacobsen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/renato_jacobsen/32/9502_2.png) [@Renato\_Jacobsen](https://forum.kirupa.com/u/Renato_Jacobsen)\
**Post date:** [February 14, 2019, 10:02pm UTC](https://forum.kirupa.com/t/learning-react-a-hands-on-guide-code-not-working/639412/1 "2019-02-14T22:02:52Z")

</div>

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

---

<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:** [February 15, 2019, 5:38am UTC](https://forum.kirupa.com/t/learning-react-a-hands-on-guide-code-not-working/639412/2 "2019-02-15T05:38:42Z")

</div>

The errata is listed here: [https://www.kirupa.com/react/errata.htm](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

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [February 15, 2019, 6:43am UTC](https://forum.kirupa.com/t/learning-react-a-hands-on-guide-code-not-working/639412/3 "2019-02-15T06:43:25Z")

</div>

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