News for hackers. Stuff that matters.
Re:A single-page app is almost always worse than a multi-pag... by juandazapata on Tuesday October 30, 2018 @10:23AM (#18336705)
From the blog post

> Third, if you’re implementing a very complicated component then you can use React just for that component.

Re:A single-page app is almost always worse than a multi-pag... by jhall1468 on Tuesday October 30, 2018 @11:45AM (#18337778)
LOL. So avoid complexity by writing in VanillaJS, but feel free to load an enormous frontend library for a single component. Makes sense.
Re:A single-page app is almost always worse than a multi-pag... by wild_preference on Tuesday October 30, 2018 @12:21PM (#18338274)
Eh, let's avoid eye-rolling hysterics on this forum and stay practical.

There are components that are complex enough to warrant a view library, embedded in an application that's not. In fact, it doesn't take much complexity at all, in my experience. At which point loading a view library a la carte is your only real option.

What doesn't make sense about that?

Re:A single-page app is almost always worse than a multi-pag... by jhall1468 on Tuesday October 30, 2018 @01:50PM (#18339406)
There are applications that warrant a view library. There's not a single case where importing two view frameworks with one handling the "complex components" makes any sense. React can also do very simple components. Pick one and run with it. If your application is complex enough to warrant a complex UI library, use a complex UI library.

The complexity involved in using two different libraries that handle the rendering in very different ways (one doesn't even do the rendering, so now you have two rendering solutions in addition to two view libraries. Yay!) in the name of simplifying your code is an absolute joke.

Re:A single-page app is almost always worse than a multi-pag... by PurpleBoxDragon on Tuesday October 30, 2018 @12:30PM (#18338417)
I'd assume it is to have a enormous front end library to handle all your complicated components and the author would be horrified by the prospect of every component written with a different front end library. It does present an issue if you literally have a single component that needs it, but I think this advice was aimed at cases where there are many such complicated components.