News for hackers. Stuff that matters.
Re:Why Learning Angular 2 Was Excruciating by brentvatne on Monday September 19, 2016 @05:08PM (#12534732)
import React from 'react'; import ReactDOM from 'react-dom';

function App(props) { return <div>Hello {props.name}</div>; }

ReactDOM.render( <App name="nichochar" />, document.getElementById('root') );

Or the alternative component API that has componentWillMount, componentDidMount, componentWillReceiveProps, shouldComponentUpdate, componentDidUpdate, componentWillUnmount, and render.

That's pretty much all there is

Re:Why Learning Angular 2 Was Excruciating by alexbecker on Monday September 19, 2016 @05:22PM (#12534856)
I believe they are complaining about the ~150kb minified filesize, rather than the API surface area.
Re:Why Learning Angular 2 Was Excruciating by barryhoodlum on Monday September 19, 2016 @06:41PM (#12535374)
It's under 40kb gzipped. If that's a sizeable percentage of your total JS code, you probably didn't need React in the first place.
Re:Why Learning Angular 2 Was Excruciating by grumblestumble on Monday September 19, 2016 @07:47PM (#12535713)
If that's pretty much all there is, you'd be better off saving ~150kb and just using ES6 template strings.