News for hackers. Stuff that matters.
Re:New React website by minimaxir on Friday September 29, 2017 @01:17PM (#15367137)
Thanks for replying. With respect to the insight in using React, I assume that the majority of React users are using it to build websites/SPAs, with concerns such as client/server data flows, templating/styling, and URL routing. While the tutorial does demonstrate a good demonstration how React works, it doesn’t provide much practical knowledge for building websites, and worse, doesn’t provide info on how to start building a website. (which just leads me to look at another tutorial)
Re:New React website by danabramov on Friday September 29, 2017 @01:25PM (#15367218)
Yes, it's intentionally not aimed at teaching SPAs, but teaching React itself. FWIW a lot of apps built with React are not SPAs.

I agree though that there is a niche for the other kind of tutorial you're describing. :-)

Re:New React website by coldtea on Friday September 29, 2017 @01:27PM (#15367234)
>it doesn’t provide much practical knowledge for building websites

That shouldn't be its purpose.

Re:New React website by dmitriid on Friday September 29, 2017 @01:31PM (#15367287)
They tried to add routing to to docs/tutorials. react-router devs hijacked the effort, ground it to a halt with claims of copyright to their code, and the pull request to docs got rejected in the end
Re:New React website by faitswulff on Friday September 29, 2017 @02:19PM (#15367699)
Link?
Re:New React website by dmitriid on Friday September 29, 2017 @03:38PM (#15368440)
Relevant comment is here: https://github.com/facebook/react/pull/8848#discussion_r1055...

Full pull request is here: https://github.com/facebook/react/pull/8848

As a result one of the React contributors ended up apologizing to react-router https://github.com/facebook/react/pull/8848#issuecomment-285...