Live data from Hacker News

My struggle to learn React

bradfrost.com

21–30 of 218 posts

Re: My struggle to learn React

#21
post #8

He didn't even get to the part that I find confusing; the naming of things. componentDidMount? componentWillMount? Wtf is mounting? This isn't a goddamn harddrive. Props? Do you mean properties? or arguments? Wtf is a prop? Reconciliation? Portals? The fuck? And then, to top it all off, you can't just use React , you need to pair it with a set of other libraries, each with their own set of ridiculous jargon and parad…

If you think React is complicated stay far far away from Angular.

Re: My struggle to learn React

#22

Honestly I don't know how I learned React. It's not fun at all. Oh sure, the basics of React is not too hard. If you ignore all the outdated examples and code (using var, no JSX, overusing component lifecycle, not using functional components). But then learning Redux, React Router, React JSS, Reselect, Redux Thunk, Webpack, etc., is just terrible. Sure, there are tutorials for each individual library, or maybe even t…

Sometimes react ecosystem and all the dependencies feel way too much. Sometimes all I want is to use data bindings, and at those times I just ended up using Vue.

None of these are React dependencies.

Re: My struggle to learn React

#24
Svelte - https://svelte.technology/ has components written in HTML. It's compiled to vanilla javascript, which results with components that are faster, use less memory, & have a smaller payload.

Also, Svelte is easier to work with. A simpler API, Computed Properties, events. The Svelte Store is also nice. I'm forced to use React in a project, but I prefer to use the Svelte Store opposed to Redux or MobX.

Re: My struggle to learn React

#25
post #17
post #11

If the author sat down for an afternoon he could fix most of these struggles, in probably less time than was invested writing about them. The thing about ES6, braces, promises, and anything else in programming is that you need a few core examples to wrap your head around and everything else is an application of that. Beautiful website btw.

Every question is easy to answer once you know the answer, the trick is finding the answer. It's often harder to know what you don't know, than actually finding the answer.

I agree with this statement, but in this case the author lists concrete things he has difficulty with, like => and promises.

I am responding based on my experience doing some react/redux work coming from a non-JS background, but the author says he is a designer so maybe that's where the difficulty is coming from.

That's not to say there aren't hard parts, but those come farther down the line when you're trying to do something unconventional.

Re: My struggle to learn React

#26
For me, the process of learning React has been terribly frustrating. The ecosystem moves too fast, and the various training materials out there become outdated very quickly. I was going through one of them and got stuck several times, and after spending several hours I found out that the function call covered in the course had been deprecated.

Re: My struggle to learn React

#27
The takeaway I got is that it seems like the React stack has worse or non-existent separation of concerns and thus it'll affect how your frontend engineers work, possibly to their detriment if they're not proficient in javascript.

Re: My struggle to learn React

#28

Honestly I don't know how I learned React. It's not fun at all. Oh sure, the basics of React is not too hard. If you ignore all the outdated examples and code (using var, no JSX, overusing component lifecycle, not using functional components). But then learning Redux, React Router, React JSS, Reselect, Redux Thunk, Webpack, etc., is just terrible. Sure, there are tutorials for each individual library, or maybe even t…

[deleted]

Re: My struggle to learn React

#29

I don't get what the benefit of using React is, aside from having it on my resume. A virtual DOM? What does that get me? It renders faster? Rendering speed is not a problem my CRUD screens have. Etc., etc. Perhaps some UIs are so complex and dynamic that they're easier to build and maintain using React. I'm not saying other people shouldn't use React, but I'm fairly certain it wouldn't give me enough payback to justi…

Its top down `(props) => rendered view` paradigm is a breath of fresh air if you've ever spent a significant amount of time in an Angular 1.x application with a complicated web of watchers and scope sharing all over the place.

Re: My struggle to learn React

#30
post #21
post #8

He didn't even get to the part that I find confusing; the naming of things. componentDidMount? componentWillMount? Wtf is mounting? This isn't a goddamn harddrive. Props? Do you mean properties? or arguments? Wtf is a prop? Reconciliation? Portals? The fuck? And then, to top it all off, you can't just use React , you need to pair it with a set of other libraries, each with their own set of ridiculous jargon and parad…

If you think React is complicated stay far far away from Angular.

Ha! I'm a full time Angular dev. It's full of the same kind of bullshit, but for some reason, I found it easier to "get".
Post reply on HN