News for hackers. Stuff that matters.
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.