Ah React.js, how I’ve come to hate you in the past few months. I now fully understand what the concept of Javascript Fatigue means. To get a React app going you need to assemble a million moving parts each of which of whom barely acknowledge each others existence. Any boilerplate project you might find is at least 6 months behind the curve which means it depends on node modules which changed incompatibly 5 months ago and 3 times since. If you go with the boilerplate for your UI toolkit, you can rest assured it won’t play nice with, e.g., react-router, which another necessary component will demand be included.

Here’s my search for a sort-of-coherent set of pieces which will allow me to concentrate on the app I must create. It’s not a very fancy app. It’s a list of clients, a detail screen on each, and protected with a password. Just a few weeks of work, right.

WRONG

Boy oh boy was I wrong. React means that you’re not building a web app. It means that you’re first assembling a toolbox from scratch and then use that toolbox to build a web app (you hope). A UI? 10 options. Data handling? 20 options (saga? redux? flux? aaagh!). Routing? Oh great, more options. Accessing the backend? Guess what, more options. How does this combinatory explosion of options hang together? No friggin idea.

I don’t want to deal with authentication. Authentication is easy to get disastrously wrong, and a pain in the neck to maintain the backend for. So I go with auth0, which makes it all nice and easy and packaged. Cool.

Auth0 seems to require react-router, but that seems like a reasonable way to go, so we’re off.

Nobody sane wants to do a UI wholly by hand, so I’m picking an UI lib. Should be easy. React is all about components, UI toolkits are all about components. Yeah? No.

(criteria cribbed from xubuild. Quick conclusion: more than a year later, the best choices are still a lukewarm “maybe”. I hate the React ecosystem)

Selection criteria

Components:

Basics:
dropdownlist / select
date picker
time picker
tab
dialog / modal / pop up window
dropdown menu
table
allows controls (menu etc) in tables
responsive
Extra:
loading indicator
dropdownlist / select with search/filter function (autocomplete)
table with sorting, filtering
theme

Infrastructure:

plays nice with react-router
use ES6 and class syntax
compatible with React 15.4.0
actively updated and supported
should not have bug that broke the whole software reported in GitHub issues
open source

The contenders

Material-UI

Components:

Basics:
dropdownlist / select
date picker
time picker
tab
dialog / modal / pop up window
dropdown menu
table
allows controls (menu etc) in tables
responsive
Extra:
loading indicator
dropdownlist / select with search/filter function (autocomplete)
table with sorting, filtering
theme: sort of, but underdocumented and a major overhaul is underway.

Infrastructure:

plays nice with react-router
use ES6 and class syntax
compatible with React 15.4.0
actively updated and supported
should not have bug that broke the whole software reported in GitHub issues
open source

ANTD

Components:

Basics:
dropdownlist / select
date picker
time picker
tab
dialog / modal / pop up window
dropdown menu
table
allows controls (menu etc) in tables
responsive
Extra:
loading indicator
dropdownlist / select with search/filter function (autocomplete)
chart
table with sorting, filtering
theme: sort of, but underdocumented and a major overhaul is underway.

Infrastructure:

plays nice with react-router
use ES6 and class syntax
compatible with React 15.4.0
actively updated and supported
should not have bug that broke the whole software reported in GitHub issues
open source

Despite all this, it’s still one of the two main contenders. This should tell you something about the sad state of the React ecosystem.

Grommet

Components:

Basics:
dropdownlist / select
date picker
time picker
tab
dialog / modal / pop up window
dropdown menu
table
allows controls (menu etc) in tables
responsive
Extra:
loading indicator
dropdownlist / select with search/filter function (autocomplete)
table with sorting, filtering
theme

Infrastructure:

plays nice with react-router
use ES6 and class syntax
compatible with React 15.4.0
actively updated and supported
should not have bug that broke the whole software reported in GitHub issues
open source

Themes are supported but no indication on how to develop them, and it talks of needing tools like Sketch, Illustrator, Axure and Balsamiq. Screw that noise.

This library has the most frustrating project name I’ve encountered in a long time – nearly everything you find on google has to do with little metal rings, regardless of extra search terms you put in.

React-toolbox

Components:

Basics:
dropdownlist / select
date picker
time picker
tab
dialog / modal / pop up window
dropdown menu
table
allows controls (menu etc) in tables
responsive
Extra:
loading indicator
dropdownlist / select with search/filter function (autocomplete)
table with sorting, filtering
theme

Infrastructure:

plays nice with react-router
use ES6 and class syntax
compatible with React 15.4.0
actively updated and supported
should not have bug that broke the whole software reported in GitHub issues
open source

Wow, this looks good, and actively maintained. Except that it doesn’t like react-router at all:

react-toolbox/react-toolbox#144
react-toolbox/react-toolbox#851
react-toolbox/react-toolbox#855
react-toolbox/react-toolbox#984
react-toolbox/react-toolbox#1059

Table is not sortable without an unmerged pull request or an unreleased external component. Has a massive structural change looming for over 6 months to address such issues but that change has unresolved conflicts and no clear indication of how much a client app would have to change. A boilerplate that’s referenced in the issue that tracks the forever-soon-now release doesn’t start. Super.

Semantic-UI

No date picker? Really? okbyethen.

What never really were contenders even if you couldn’t be blamed for thinking they were

Bootstrap

First stop was bootstrap. React-bootstrap seems to play nice with react-router, so no issues getting auth0 going. But bootstrap is mainly just UI layout; it does bugger-all for all the other necessary components (dropdowns, date pickers, sortable tables), and I’m sure as hell not cobbling together an personal UI library in hopes that it will style reasonably consistently.

Angular to the rescue?

So let’s give angular a shot. 5-6 weeks in and React is actively (pun intended) trying to get me depressed and doing a damn good job of it. At least Angular is supposed to be opinionated and full-stack, right?

GODDAMN WRONG

Angular works just fine. I’m following the tutorial and while there’s an amount of magic going on under the hood that scares even a Ruby on Rails dev, at least things are working, 30 minutes into the tutorial. Yay!

Except… hey, this is the tutorial for Angular 2. Hmm, I don’t suppose that… nope, angular-material is Angular 1 only. OK, whatever, Angular 1 it is. Oh, Angular 1 is nothing like Angular 2? Uh, that doesn’t bode well. And sure, angular-2-material exists… sort of, but horribly incomplete. But hey, look what I just found! Mean.io promises an opinionated full-stack framework! And there’s even an mean-material! Which, of course, doesn’t work, and requires conflicting versions of packages. It’s DLL-hell all over again.

So mean.io is behind the curve on angular (the default setup includes it but it just plain doesn’t work), so I was going to try mean.js, but of course, they don’t support material either. WTF everybody?

generator-angular-material-fullstack is another good MEAN option, right? wrong

And of course angular-material has problems with the modern web:

Unsupported Integrations

Angular Material v1.0 has known integration issues with the following libraries:

ngTouch - ngMaterial conflicts with ngTouch for click, tap, and swipe support on touch-enabled devices.