JavaScript React Basics First Steps in React Render an Element

What DOM elements did he replace when he typed in 'Loading...' in the root DIV? I didn't see any changes?

I didn't see any changes to the elements in the DOM when he typed in 'Loading...' in the root DIV and am confused on what point he was trying to make?

Can anyone provide some clarity?

2 Answers

The text content 'Loading...' itself was replaced, as would any html element if there had been any.

cristian lemus
.a{fill-rule:evenodd;}techdegree seal-36
cristian lemus
Full Stack JavaScript Techdegree Graduate 25,787 Points

Make sure you are using ReactDOM instead of ReactDom

I wasted a couple hours figuring this out to realize this was 'my' issue. Hope this helps, and others that had the similar issue