News for hackers. Stuff that matters.
Re:How Does setState Know What to Do? by mambodog on Sunday December 09, 2018 @02:32PM (#18642756)
I would recommend just following the official React tutorial: https://reactjs.org/tutorial/tutorial.html

There are many other tutorials on the web but the official one has had a lot of work put in to making it seamless and letting you get a feel for what it's like to work with React without throwing too many tangential ideas at you.

Re:How Does setState Know What to Do? by sametmax on Sunday December 09, 2018 @05:08PM (#18643602)
No it makes you start in an online pastebin env. It's the easy way for the tutorial writter, not the easy way for the learner.

I teach React regularly, I tried all methods. The only one that make people click is to make them use a flat html page and React.createElement() manually in it first. On their laptop. Offline. With no other tools than a text editor.

This way, you remove the magic, and when you bring it back, people make good use of it.

Magic is good for power users. It's a bad things as a beginer's tool though.