DEV Community

Cover image for An Absolute Beginner Learns React, Part II

An Absolute Beginner Learns React, Part II

Andrew (he/him) on April 03, 2019

In my last stream-of-consciousness blog post on learning React from scratch, I began working my way through ReactJS.org's tutorial. I built my firs...
Collapse
 
wesgrimes profile image
Wes

I really appreciate your approach here Andrew. Fun to read and as an experienced JavaScript developer your stream of consciousness provides insight into how I can help better train new javascript developers. Nice work!

Collapse
 
awwsmm profile image
Andrew (he/him)

Glad to be helpful, Wes! Let me know if there's anything in particular that you'd like to know as I'm going through the tutorials.

Collapse
 
dwd profile image
Dave Cridland

That comma wasn't a typo - Javascript (like many scripting languages) allows a comma at the end of a list like that. It's great for when you add another item to the list (or, in this case, another property to an object). Python, which you probably did a bit of in Physics, allows the same.

It's a bit of an odd case, because JSON - which is Javascript syntax, after all - doesn't allow it.

Collapse
 
patricktingen profile image
Patrick Tingen

Ha, like this style of writing, at least it makes me feel not too dumb, because a lot of the things you wonder would be things I would as well. Cool!