News for hackers. Stuff that matters.
Re:Ask HN: For those moving away from React what options are... by sotojuan on Friday September 15, 2017 @10:52AM (#15257604)
Server rendered pages with little to no JS.

--

The patent clause generates discourse because HN commenters love to state the obvious, particularly when it's off topic (e.g. an article about React performance has a commenter rushing to say "but the patent sucks!" to generate a thread of comments about that).

In real life, no one cares (for better or worse). Companies and start ups are adopting React like they have for the past year(s).

Re:Ask HN: For those moving away from React what options are... by flavio81 on Friday September 15, 2017 @03:59PM (#15260279)
I'm waiting for WebAssembly to receive stronger toolings and lib until a radically new way to program the frontend appears. Ah, and I will relish to see the end of the Javascript dominance of the browser. I can say that again. I would love to see Javascript kicked away of the browser and replaced with something less asinine that doesn't require transpilation (Babel, etc), nor a slow kludgy hack to have a weak type safety net (TypeScript).

Meanwhile, i'm sick of the current state of the art for the web frontend. It is currently so convoluted and unprofessional, that programming a Windows desktop application using the ancient, verbose Win32 API looks like heaven, compared to it.

In any case, if you need an alternative, Svelte looks good.

Re:Ask HN: For those moving away from React what options are... by jbreckmckye on Sunday September 17, 2017 @07:19PM (#15272259)
Expect to keep waiting. WebAssembler does not interact with the DOM and probably never will do. It is being developed as an replacement to NaCl, not V8. Page scripting will still be done in JS for several years.
Re:Ask HN: For those moving away from React what options are... by flavio81 on Monday September 18, 2017 @04:03PM (#15279026)
>WebAssembler does not interact with the DOM and probably never will do.

Because it doesn't really need to. You can already bridge this gap by using javascript as a bridge or "glue" between WebAssembly and the DOM.

Example:

https://github.com/mbasso/asm-dom

> Page scripting will still be done in JS for several years.

There are people who thought that corporate web pages would be done in Flash (& Actionscript) for several years.

Re:Ask HN: For those moving away from React what options are... by mars4rp on Friday September 15, 2017 @04:21PM (#15260461)
the problem is not JS, problem is people are not using the latest version of browsers. if you have to still support IE because your clients still use it, I don't see how WebAssembly can help!
Re:Ask HN: For those moving away from React what options are... by relaunched on Friday September 15, 2017 @09:06AM (#15256784)
We're using Choo. Super simple, lightweight and but very powerful. https://choo.io/

However, I saw this article related to why Gitlab chose Vue. https://about.gitlab.com/2016/10/20/why-we-chose-vue/

Re:Ask HN: For those moving away from React what options are... by ripexz on Friday September 15, 2017 @01:20PM (#15258923)
We've been using Knockout.js at my company for the last ~4 years but we're in the process of switching over to Vue.js, or at least use it for new projects.
Re:Ask HN: For those moving away from React what options are... by owebmaster on Friday September 15, 2017 @12:19PM (#15258345)
I'm not moving away from react until a potential library has a clojure-wrapper similar to reagent (https://github.com/reagent-project/reagent). There are some people using it with preact, though.
Re:Ask HN: For those moving away from React what options are... by sauravjain on Friday September 15, 2017 @11:37AM (#15258003)
How about Ember?
Re:Ask HN: For those moving away from React what options are... by LeeHwang on Friday September 15, 2017 @12:50PM (#15258602)
My company is switching to a combination of little to no js, vue.js, and jquery.

The big fear of c-level guys is to avoid another react legal situation. We've already had to dump angular, and after react, I now get enormous pushback on using any framework system that wasn't created internally.

Re:Ask HN: For those moving away from React what options are... by jdavis703 on Saturday September 16, 2017 @01:41PM (#15265638)
Why were you required to dump Angular?
Re:Ask HN: For those moving away from React what options are... by webgroot on Friday September 15, 2017 @08:56AM (#15256706)
Does preact come under React's patent clause? My understanding is that both are completely different libraries. If people have concerns on react's patent clause, isn't it easy to migrate to preact?
Re:Ask HN: For those moving away from React what options are... by kybernetikos on Friday September 15, 2017 @12:01PM (#15258201)
Unlike copyright, patents apply to anything that uses the patented method. This means that if Facebook have any patents on react (and so far I haven't seen anyone actually point to specific patents) they would apply to anything using the same techniques which would likely include any similar library.
Re:Ask HN: For those moving away from React what options are... by owebmaster on Friday September 15, 2017 @12:21PM (#15258360)
It'd be interesting to see how the patent would be enforced if the company is outside US
Re:Ask HN: For those moving away from React what options are... by girishso on Saturday September 16, 2017 @04:20AM (#15263568)
Elm - such a delight to use. React/Redux without all the boilerplate. http://elm-lang.org/
Re:Ask HN: For those moving away from React what options are... by romanovcode on Friday September 15, 2017 @08:46AM (#15256638)
Angular with NGRX is not bad. Vue if you don't like typescript.
Re:Ask HN: For those moving away from React what options are... by OrdinaryBytes on Friday September 15, 2017 @09:22AM (#15256906)
I think you can use typescript with Vue.
Re:Ask HN: For those moving away from React what options are... by enrmarc on Sunday September 17, 2017 @04:42PM (#15271591)
Vue.js