News for hackers. Stuff that matters.
Re:React from zero: a simple tutorial for React by Kagerjay on Saturday June 30, 2018 @12:50PM (#17431525)
Frontend frameworks solve a need for SPA (Single Page Applications). While simple HTML/CSS/JS can handle simple static sites, something that needs reactive components (e.g. interacting with something on the site, and populating change instantly) is much easier in a framework. Javascript natively is quite difficult to do this and requires a lot of code to handle simple logic. This is what libraries are good for. React and Vue are such frameworks. These frameworks also allow for iOS and android integration as well.

However, I do agree with things being overcomplicated. I keep my tool chain process as lean as possible, with as few dependecies needed. I find it baffling that people would use React for something like an ecommerce site. Its all about the right tool for the right project. Not everything benefits from React, but some things do some things do not.

Re:React from zero: a simple tutorial for React by rhapsodic on Saturday June 30, 2018 @01:30PM (#17431730)
> Javascript natively is quite difficult to do this and requires a lot of code to handle simple logic.

Statements like this are what boggle my mind. I just don't see what's so damn difficult about native Javascript.

Re:React from zero: a simple tutorial for React by pault on Saturday June 30, 2018 @02:35PM (#17432059)
It's not JavaScript, it's the DOM and other browser APIs.
[dead]
Re:React from zero: a simple tutorial for React by dang on Sunday July 01, 2018 @02:19AM (#17434368)
Could you please stop posting uncivil comments?

https://news.ycombinator.com/newsguidelines.html

Re:React from zero: a simple tutorial for React by abiox on Sunday July 01, 2018 @11:19AM (#17435910)
hi, i noticed there isn't an option to delete my account, and the faq didn't address this from what i could tell. is there a recommendation here?