React Setup Article Out of Date


#1

https://www.codecademy.com/articles/react-setup-v

So I’ve followed this tutorial to the letter, only to hit a brick wall when trying the command:

npm run build

I get an Unexpected Token error for the line ReactDOM.render(<App />, document.getElementById("app"));

Googling this shows that babel is not transpiling the code for WebPack to understand.

Googling further shows that the tutorial is really out of date, in particular with Babel (New scoped libraries etc)

Every remedy online I’ve tried still fails at the exact same point.

Can you update it please? I’ve just wasted an entire day on this only to realise it’s because the tutorial is out of date. So now I need to start from scratch using an up to date tutorial from another site.

Knocked my confidence in your services a bit, glad I haven’t bought Pro.