> I hate html in javascript. I hate JSX.
At least it's just HTML and JavaScript.
In my opinion it's better than learning a new messy templating DSL, i.e.
<ul ng-if="::vm.items.length">
<li ng-class="::{ 'active': item.active }" ng-repeat="item in ::vm.items | orderBy: 'id' as ordered track by item.id" ng-click="item.active = !item.active">
{{::item.name}}
</li>
</ul>
<select ng-options="item.subItem as item.label for item in ::vm.items2 track by item.id" ng-model="selected"></select>
<div ng-include="selected.template.url" />
> I hate the lack of CLI. I hate the ridiculous amount of shit I have to do to simply get a project started.You can use the official Create React App CLI [1].
> I hate the sheer amount of boilerplate code and the verbosity.
How do you recreate the following component in Ember/Angular/Backbone/jQuery/FoobarJs with less boilerplate and verbosity?
Header.js:
import React from 'react';
import Icon from './Icon';
export default ({ icon, title, subTitle }) => (
<header>
<h1><Icon name={icon} /> {title}</h1>
<p>{subTitle}</p>
</header>
);
> I hate the lack of conventions — every project I look at looks different, every blog post looks different.React is just a library to build views, so there is not a single way to build your app in the React world. You can use Redux, MobX, Flux or whatever you want to manage your data. You can even do it in 100% raw vanilla JS. I think it's great.
---