Show HN: The Road to learn React – Build a Hacker News App on the Way

  • The previous tutorial posts by Robin are fantastic, and cover topics like React, Redux, MobX, Flow, and ESLint ([0]). This book looks to be even better. I'm going to preemptively recommend it without having even read it yet, because I know it'll be extremely well written.

    As a similar note and bit of a self-plug: I keep a big list of links to high-quality tutorials on React, Redux, and related topics, at [1]. Specifically intended to be a great starting point for anyone trying to learn the ecosystem, as well as a source of quality info on more advanced topics. I've also been blogging at [2] on React and Redux usage, and just posted "Practical Redux Part 5: Loading and Displaying Data" [3], the latest in a tutorial series intended to demonstrate some intermediate to advanced usages of React and Redux.

    [0] http://www.robinwieruch.de/

    [1] https://github.com/markerikson/react-redux-links

    [2] http://blog.isquaredsoftware.com/

    [3] http://blog.isquaredsoftware.com/2016/12/practical-redux-par...

  • Love this book, the flow, the levels, and the rhythm!

    The only thing I stay apart from, is the implicit approach of ES6.

    IMHO, explicit is better than implicit. Therefore:

        return (<div>...</div>)
    
    Is better than

        {
          <div>...</div>
        }
    
    and

        this.state = { list: list };
    
    Is better than

        this.state = { list};
    
    Everyone these days seems to take the implicit ES6 way though.

  • Two days ago I made a comment about HN evangelizing React, but never posting any good/current getting started points. I officially stand corrected.

    I'm still curious about reasons to invest time in learning it over plain old javascript.

  • Pedantry alert: small typo - "if you can effort it" should be "if you can afford it".

  • Vue seems to be the flavor of the month

  • Why would you want to teach React without Redux?

    I failed on the trap as well, I mean, why would you want to add yet another 'concept' to your stack when you can just get a simpler piece of code do the same thing as a more complex one?

    The truth is that if you're going to build something as simple as a simplified Hacker News clone, you can just get along using concepts of Redux with plain-old React without actually using Redux.

    However, if you want to build a much more complex frontend system using Redux does give you a utility.