News for hackers. Stuff that matters.
Re:Learning React.js is easier than you think by onion2k on Tuesday August 01, 2017 @03:56PM (#14904698)
Coming from an Angular background, the thing that helped me immensely in learning React was learning Vue and vuex first. Vue is simpler (to learn that is; not necessarily true in terms of real world code..) but conceptually similar to React, which helped to bridge the divide between Angular and React. As a bit of a bonus I'm now familiar with three frameworks instead of one.
Re:Learning React.js is easier than you think by robodale on Wednesday August 02, 2017 @09:26AM (#14910331)
+1 for learning Vue. I also went from Angular to Vue (skipping React outright). Looking at React component code almost looks like Vue stuff...I was surprised I was instantly understanding another framework (React).
Re:Learning React.js is easier than you think by MuffinFlavored on Wednesday August 02, 2017 @10:45AM (#14910942)
Does the ecosystem need both? Why would somebody sometimes use Vue or sometimes use React?
Re:Learning React.js is easier than you think by bdcravens on Tuesday August 01, 2017 @10:04PM (#14907315)
This article, so many, isn't about learning React, it's about learning to build a basic component. If all you want to build is a non-persistent to do list, it's great. If your goal is "Learning React.js" (in other words, be able to build apps) I feel you aren't even getting started until you start address pulling in data from external sources.
Re:Learning React.js is easier than you think by matthewvincent on Tuesday August 01, 2017 @10:28PM (#14907441)
I don't think learning React is analogous to learning to build client server apps any more than jQuery is. I personally have worked on many static React websites (which is a blast by the way).
Re:Learning React.js is easier than you think by bdcravens on Tuesday August 01, 2017 @11:09PM (#14907634)
Interesting, I wouldn't think that would be a common use case. Were the websites totally static, or were they inside of another app that actually handled the dynamic bits?
Re:Learning React.js is easier than you think by onion2k on Wednesday August 02, 2017 @01:41AM (#14908187)
React is good for completely static sites. ReactDOMServer.renderToStaticMarkup() is a lovely way to use components to orchestrate a static site even if you need data from external sources using Flux or alt.js or something. If you know React well you can do anything you'd do in Jekyll or Hexo quite easily.
Re:Learning React.js is easier than you think by mmargerum on Wednesday August 02, 2017 @10:38AM (#14910889)
This page gets stuck in a reload loop on my iPad Pro