For all React coders out there, why and how?
I am trying to learn it for two days (probably 12 hours by the time I write it) and... everything about it is pure annoyance that is shaped into a form of language.
Help from google? Nah fam it is outdated and not documented in official documentation.
Need sensible errors? .........fuck off.
Syntax? My eyes are burning.
Writing efficiency? You can write that code in 10 minutes, if you dont include the up-to-date package search on Google for 1.30 hours straight.
I will wait for many many years more for a language alternative to Javascript so I dont have to deal with this abomination. For whoever dealing with this and making life from it, how you all manage to keep your mental stability in balance?
[+] [-] iamnatch|3 years ago|reply
You can get started with this right away, simply type `react.new` into any browser and it will bring up a brand new, ready to go codesandbox in which you can write code, see your changes update live, save your drafts, and eventually download your code and run it direct on your machine. Even as an experienced React dev, I still spin these up all the time for little experiments and proofs.
Once you're ready to actually build a website, you'll probably want to start with an established framework like NextJS[0].
0: https://nextjs.org/docs
[+] [-] ss108|3 years ago|reply
That being said, I think your post is over-dramatic. Simple React apps for learning purposes shouldn't be too difficult or crazy. You may be overindulging in grouchiness and not giving it a chance.
Personally, I want to try something more minimalist like mithril.js at some point. I have heard good things about Svelte. It looks weird to me, but willing to give it a try.
[+] [-] jfengel|3 years ago|reply
Worse: the benefits of thinking that way are not really visible with small programs. Anything you can do in the "hello, world" range will seem harder than doing it in a conventional way.
Worst: React has gone through several substantial revisions, leaving a confused mishmash on Stackoverflow. The new ways are genuinely better, and the first few iterations were kind of a travesty.
Having gone through that pain, I find React very natural. It aims to be side-effect-free, which substantially aids debugging -- the bigger the program, the harder it is to figure out where some side effect occurred.
JSX seems to strike the right balance between HTML and code. A program "is" a web page... except when you need to escape out to Javascript, and you do that with a simple {}. That maps to how I think of a web page. (In fact, JSX is not HTML; you don't need React to write JSX and you don't need JSX to write React. And the differences can be genuinely maddening. But the lie of "It's HTML with some JS" is good enough for most days, especially when you jut start.)
There remain plenty of things to criticize about React, but when you just get started with it, most of the pain you experience will be shifting to its mindset. You'll be tempted to do things in the conventional way, and that's not going to work. It does actually become very fast to develop in because it reduces certain kinds of errors that require a lot of discipline to avoid in conventional DOM manipulation.
[+] [-] user432678|3 years ago|reply
I personally don’t anymore, and currently struggling to leave frontend development all together somewhere else (thinking of Golang). As other commenters have mentioned, React.js development wasn’t that complicated when it first was introduced to the public.
[+] [-] toastal|3 years ago|reply
[+] [-] bjacobt|3 years ago|reply
I build in angular but looking to switch to react since it’s more popular and I find it confusing what libraries to use and patterns to follow. Eg: class based or functional components
[+] [-] savanaly|3 years ago|reply
[+] [-] skydhash|3 years ago|reply
[+] [-] kidgorgeous|3 years ago|reply
[+] [-] damacaner|3 years ago|reply
I cant even find a library or language to code front-end, like I am burning my time since six days to find something that is dev-friendly. Everything is just, is it secure or fast? yeah ship it, we dont care about how developers feel about it.
really sad.
[+] [-] beardyw|3 years ago|reply
[+] [-] draw_down|3 years ago|reply
[deleted]