My Authors
Read all threads
1/7 I'm feeling generous, so here's the best beginner #React tutorial I've never written!

So, first thing you do in React? It's obvious, you jump right into calling some API to display some real data for your new app and you skip the boring "getting started" documentation!
2/7 But then you wonder: "How do I return the response from an asynchronous call?" stackoverflow.com/q/14220321/121…
3/7 Ok! It now logs the data, but it fails when you're trying to use it. It's because the console is tricking you: stackoverflow.com/q/17546953/121…
4/7 Now that you have the data, you'd like to get that sweet listing rendered but it always fails with "Cannot read property 'content' of undefined".
How can I access and process nested objects, arrays or JSON? stackoverflow.com/q/11922383/121…
5/7 Next step: updating the data. But it now complains that it cannot read property 'setState' of undefined. "Again? I AM USING `this`, IT SHOULD WORK!!1", you tell yourself.
How to access the correct `this` inside a callback? stackoverflow.com/q/20279484/121…
6/7 Updating the state finally worked, but now everyone is yelling at you to avoid mutating the current state object...
Is JavaScript a pass-by-reference or pass-by-value language? stackoverflow.com/q/518000/12189…
7/7 Moral of the story: the best beginner React tutorial is just getting familiar with JavaScript basics. After that, React development is a breeze.
Still unsure you're ready to dive into React? Start here: stackoverflow.com/questions/tagg…
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Émile Bergeron

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!