News for hackers. Stuff that matters.
Re:Ask HN: Should I use Polymer for my next project? by Kiro on Tuesday July 01, 2014 @01:54PM (#7972366)
React seems so complicated in comparison to Angular templates. Am I wrong?
Re:Ask HN: Should I use Polymer for my next project? by lowboy on Tuesday July 01, 2014 @07:10PM (#7974049)
I've done projects in both Angular and React and I find the latter to be much simpler to reason about. Scopes, transclusions and directives are often confusing. React is just nestable Polymer-like components of encapsulated markup and behaviour.

A React component at its most basic is just an object that implements a render() method that is responsible for rendering markup. See the React home page for examples http://facebook.github.io/react/index.html.

Since React is just a view layer though, you're left to your own devices for everything else. So if you're evaluating it from the perspective of a whole SPA, then it becomes more complicated.

Re:Ask HN: Should I use Polymer for my next project? by nailer on Tuesday July 01, 2014 @02:17PM (#7972531)
Try ractive. You get simple mustache templates, but the speed of a virtual DOM like React.