Error: Target container is not a DOM element.

As a React guy, today I’m trying to do a little practice with the little example on the official website. I encountered such a problem during the practice. See the following figure for the error.

reported this error because I customized “elementId” in the index.js file.

solution:
if you want to customize the elementId, you need to change the id of the main dom node in the index. HTML file.

Read More: