Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Developing in React is using HTML, CSS and JavaScript. It's a declarative approach so the programmer states describes the end result and the React library does the work (code) to update to he DOM. This works really well and is not as hard as the comments make it out to be here. You could write all th JS out to achieve the same thing but it would be silly.

It forces the developer to break things into components which is essential for any maintainable UI.

Since React is the the most popular JS library it is easier to hire for.

SPAs that are done well are a better user experience because the page 'loads' once and then feels faster. That is what users expect.

If a company has multiple sites, it makes sense to be consistent with tech across those sites.

It's ready for future requirements. If you didn't use React and you kept getting requirements for the next few years you would be more likely to end up with a ball of mud if you were doing plain HTML and JavaScript.

One part that I agree seems complicated is the build and dev environment.



It's a 15 page static site with pdf links. What ball of mud would 15 html pages be?

2 years and a huge team cost this company a million dollars. Doing this in html would take $5,000 at most. Hiring for react is expensive. Hiring for basic html very cheap with large pools of candidates.


I don't disagree that this could be done with HTML but 2 considerations:

1) It did not take 2 years, a huge team and a million dollars because of React. Like I said React is just using HTML, CSS and JavaScript.

2) You're assuming the requirements will stay that simple. Maybe the person making the decisions has better insight than you?

Soon the feature set could add:

* A notifications area to show the user when a new document is added

* A search feature to find documents

* A parameterized reporting tool

* An admin backend

* Restricted access based on user type




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: