Live data from Hacker News

React is mostly hype

en.arguman.org

91–100 of 138 posts

Re: React is mostly hype

#91

Neither React or Angular are mostly hype. I posit that SPA's, whose implementation is made less painful by React, are mostly hype. I liken it the Lisp macro analogy. Never write an SPA unless absolutely necessary--stick with a web page with some dynamic js-driven features as needed.

SPAs can be a good thing when used internally in a business (ease of distribution, sandboxing, etc.), but I agree that any public-facing web site is probably best served by static HTML with minimal JS where it is absolutely necessary.

Re: React is mostly hype

#92
React is a pretty simple concept (with, perhaps, a complex implementation) reified in a library. It's basically componentized state machines for UI rendering. Comparing it to general "web frameworks" is completely missing the point. Granted, some people do [often needlessly] install a lot of react-whatevers for everything from routing to mysql fetching (yep).

I can see it being replaced by another library with a similar underlying philosophy that just does it better, but I don't really see how the general idea would vanish soon.

And btw Facebook uses it a lot on the web too (not just the often mentioned Ad Manager), messaging (and messenger.com) is basically all React and other components are a mix. Download the React Devtool to check it out, they don't obfuscate the React tree at all. Pretty fun to browse.

Re: React is mostly hype

#93
post #86

Was not aware of this until reading: "Your license to use React.js can be revoked if you compete with Facebook" http://react-etc.net/entry/your-license-to-use-react-js-can-... This is the scariest part to me: "The library is open sourced under BSD, but it comes with an added patent clause that you should be aware of." https://github.com/facebook/react/blob/master/PATENTS From reading more, it appears that Facebook ca…

It's not if you compete with Facebook, it's if you engage in patent litigation with Facebook.

This is a Mutually Assured Destruction clause for patent fights, nothing more.

Re: React is mostly hype

#94
post #8

The arguments are pretty vague, for example > React becomes counterproductive when developing apps that aren't mere demos. I have developed big apps in Backbone, moving very the same apps to React and the productivity went up madly. Facebook does develop apps which certainly cannot be considered "mere demos" and you can see them in action, for example Ad Manager for Facebook on iOS (written in React Native). Facebook…

React itself is pretty simple and very nice to work with. The whole react/redux/react-redux/react-router/react-router-redux/webpack/babel/flow agglomeration on the other hand is a lot more complex and subject to a lot of api churn. But you can actually get pretty far just using React by itself. Don't adopt other parts of this stack until you actually really need them and you can go pretty far with just a few concepts…

What I need in every project is react for the UI, babel for modern JS and webpack. (I went through combinations of gulp, browserify, requirejs and brunch. Webpack finally solved the packaging-mess for me).

Redux is something you can implement yourself easily, I never understood the need for a library there.

The good idea of redux is to have a serialisable state which is changed through events. This gives you unidirectional data-flow and the ability to pause/restore your application.

Complete immutability and funneling everything through functions on the other hand often just obscures readability, and, in case you are using immutablejs, gives you terrible performance.

If I want to have purely functional programs I don't use Javascript, but Haskell or something. If I need time-travelling debugging, which I never found very useful when dealing with complex states, I'll implement it by copying my state using serialization.

Re: React is mostly hype

#95
post #8

The arguments are pretty vague, for example > React becomes counterproductive when developing apps that aren't mere demos. I have developed big apps in Backbone, moving very the same apps to React and the productivity went up madly. Facebook does develop apps which certainly cannot be considered "mere demos" and you can see them in action, for example Ad Manager for Facebook on iOS (written in React Native). Facebook…

React itself is pretty simple and very nice to work with. The whole react/redux/react-redux/react-router/react-router-redux/webpack/babel/flow agglomeration on the other hand is a lot more complex and subject to a lot of api churn. But you can actually get pretty far just using React by itself. Don't adopt other parts of this stack until you actually really need them and you can go pretty far with just a few concepts…

Just use mvc, page js and fetch: github.com/lancecarlson/React-MVC

Re: React is mostly hype

#96
post #33

I really don't give a shit what anyone says, for me personally ReactJS makes front end great fun to program and an absolute blast and empowers me like never before to build powerful, interactive front end apps with a code base that is well structured, understandable and makes sense. Until React I dreaded front end development, painful, weird, quirky, hard to organise and generally problemtic. With React I feel like a…

I don't see if it makes much sense to compare Angular with React.

Heck, it's like a Pythonista would go comparing Django and Jinja. One's a framework, another's a template library. Same goes for Angular and React - Angular's a framework that tries to be do-it-all solution (UI rendering, validation, data model description, data persistence and communications with server, and more), React's an long-distant ancestor of templating libraries that essentially does only one thing - takes a data structure, a component definition and renders (and maintains) a DOM tree.

Seems that many are calling non-React pieces that are frequently used with React (e.g. Redux, Flux, Immutable.js, Restful.js) to be "React" as well, while they don't seem have any ties to it.

But, yea, loose coupling's great. And React is a very nice library.

Re: React is mostly hype

#98
I've used React in four projects (after many projects in Angular[1])

1. In terms of best practices, React for serious development is a disaster just by itself. Read on.. This is what happened in my first project (when I didn't use Redux). By itself it is only good(and great) for POCs. And React-ecosystem is complex to start with. React-Redux, Router, Axios, Webpack make React complete for use in any serious project.

2. React makes web-componenting pretty easy. However it is counter-intuitive when you start thinking about the all important Smart Vs Dumb components separation. I don't know about others, but I like to see components as behaviour-complete stuff and not just view-complete. React with its ecosystem does things in a view-complete way. Yes, it does result in much much lesser bugs.

3. React is hyped because of its simple examples. As I said earlier, it makes it easier to create behaviour-complete web components. But then the ecosystem says "NO. NO.. Think in REACT way". That is not wrong but its complex. The first project in React was a disaster because of the complex state management I did without using redux or flux.

4. After working with React - when I tried Angular2, I moved back to React again. And I did React+TypeScript which makes coding even easier. The only thing I still like in Angular2 is now-not-default two-way data binding.

Do I love React? May be not so much - but its the best I have seen. But I love the way my apps remain bug free without a lot of front-end testing code. And once you add TypeScript, development is just a bit more easier and bugs get thrown up at compile/transpile time

Re: React is mostly hype

#99
post #93
post #86

Was not aware of this until reading: "Your license to use React.js can be revoked if you compete with Facebook" http://react-etc.net/entry/your-license-to-use-react-js-can-... This is the scariest part to me: "The library is open sourced under BSD, but it comes with an added patent clause that you should be aware of." https://github.com/facebook/react/blob/master/PATENTS From reading more, it appears that Facebook ca…

It's not if you compete with Facebook, it's if you engage in patent litigation with Facebook. This is a Mutually Assured Destruction clause for patent fights, nothing more.

I was quoting. Did you read everything that I wrote? I thought I did a pretty good job telling the entire story.

Re: React is mostly hype

#100
post #99
post #93

Earlier quoted context omitted.

It's not if you compete with Facebook, it's if you engage in patent litigation with Facebook. This is a Mutually Assured Destruction clause for patent fights, nothing more.

I was quoting. Did you read everything that I wrote? I thought I did a pretty good job telling the entire story.

Right, if you look at the contents of the license in the discussion, they are variants of "if you try to fight us with patents, we will deny you a license/patents".

So you can compete with FB without losing a license. The first blog post you quoted shows a misunderstanding of the license (the word "compete" doesn't show up in the license).

So the correct representation is "If you claim patent infringement by FB, you can lose the license.". This is what the linked comments say, but what your summarised statement didn't properly capture (hence my comment).

Post reply on HN