News for hackers. Stuff that matters.
Re:New React DevTools by droidist2 on Thursday August 15, 2019 @11:01PM (#20711791)
One thing I like about having React DevTools installed is you can easily see which sites use React because the little icon lights up. It's a surprising amount these days; React is getting so popular.
Re:New React DevTools by koolba on Thursday August 15, 2019 @11:12PM (#20711849)
It’s even more fun to see the ones that mistakenly bundle the development version of React.
Re:New React DevTools by judge2020 on Friday August 16, 2019 @09:58AM (#20715176)
I've found that Rotten Tomatoes (although not on the front page) uses an outdated version, and the AWS console uses an unminified version.
Re:New React DevTools by MuffinFlavored on Thursday August 15, 2019 @11:07PM (#20711827)
I wouldn't want to work on Polymer or Angular in today's job market.
Re:New React DevTools by rovyko on Thursday August 15, 2019 @11:31PM (#20711949)
Why is that?
Re:New React DevTools by throw03172019 on Friday August 16, 2019 @12:06AM (#20712088)
I think he/she is implying everyone is using React which means no jobs for Angular devs.
Re:New React DevTools by jackdh on Friday August 16, 2019 @06:40AM (#20713787)
I can still see Angular kicking around for a long time too be honest.
Re:New React DevTools by k__ on Friday August 16, 2019 @07:44AM (#20714148)
Yes. Especially in Germany it seems to be on a high in terms of Web development.

But when it comes to mobile, React-Native seems the way to go.

Re:New React DevTools by bytematic on Friday August 16, 2019 @10:39AM (#20715579)
What is the competition in that regard apart from native apps? Flutter and Ionic are sorta different beasts
Re:New React DevTools by k__ on Friday August 16, 2019 @05:10PM (#20719749)
I saw many companies using Ionic until RN got big.
Re:New React DevTools by tannhaeuser on Friday August 16, 2019 @06:30AM (#20713753)
From my PoV, React is already past its maximum in the hype cycle, and I see customers choosing vue.js most of the time. I have no stake in this (haven't worked with vue.js, nor with new React with hooks etc.), but presumably vue.js is chosen for React-like MVw without the jsx/babel+webpack build step drama, as a simple js lib.
Re:New React DevTools by danabramov on Friday August 16, 2019 @08:20AM (#20714378)
This sounds like a misunderstanding to me. “JSX/Babel/webpack” aren’t any more required for React than for Vue. Here’s how to use React without them: https://reactjs.org/docs/add-react-to-a-website.html

Just drop it as a script on the page.

Ironically, my understanding is that it’s Vue that requires a compiler for even basic component support. If you don’t use webpack or similar tools with Vue, as far as I know, you can’t declare an idiomatic reusable Vue component.

With React, whether you use Babel/JSX/Webpack or not, components are always available. They’re the whole point.

I think it’s fair to say that Vue is initially more familiar to and easier to get started with for folks who are more comfortable with HTML. React is more JS-centric. Even though in the end they render the same DOM elements.

Re:New React DevTools by tannhaeuser on Friday August 16, 2019 @08:45AM (#20714601)
Hm, then it's indeed a misunderstanding on my side. I definitely need to take a look into vue, but I thought people were choosing it over React because they didn't like JSX but would prefer straight HTML (though again, I don't know vue and how it would be possible for vue to render components based on just HTML syntax).
Re:New React DevTools by danabramov on Friday August 16, 2019 @09:21AM (#20714864)
Vue offers a more gradual learning curve coming from HTML. Because in the beginning, you don't write components in JS at all. Instead, you can use Vue "directives" like `v-if` right inside your HTML. Later, when you're ready for components, you have to add a compiler.

React takes a different approach. It doesn't "pretend" to be HTML by extending it with custom directives. Instead, it forces you to start the journey in JS land. That can be frustrating at first if you're unfamiliar with JS. But the gap between "simple" and "complex" is smaller: you learn the idea of components once, and can apply it with or without a toolchain.

Re:New React DevTools by codingdave on Friday August 16, 2019 @09:46AM (#20715057)
That is the exact reason I prefer React - Vue feels like you are mixing HTML and code when you start adding in the directives. JSX feels quite natural to me, in particular because it provides an easy mechanism to code with a clean break between the app logic vs. rendering.

I know at the end of the day, they both still come out as HTML and JS in the browser, but React just feels cleaner. At least to me.

Re:New React DevTools by UweSchmidt on Friday August 16, 2019 @07:56AM (#20714208)
While you can use vue as a simple lib

    <script src="vue.js"></script>
most tutorials do "excalate quickly" and introduce the vue cli within the first few minutes, which is probably what most professional teams use to manage today's frontend build step (drama).
Re:New React DevTools by nwsm on Friday August 16, 2019 @12:28PM (#20716808)
Many (most?) people have a build step in their Vue deployment process.
Re:New React DevTools by ryanmarsh on Friday August 16, 2019 @07:59AM (#20714229)
I too have had several clients recently choose Vue. Not sure if this is part of a greater trend.