|
|
|
|
|
by tarjei_huse
1595 days ago
|
|
The way I read the document is that the main reason is that they do not have to upgrade their whole stack including dependencies like React Router. Stepping off the dependency upgrade treadmill is an interesting and valid point that I think many HN readers dream of. It seems to me that Etsy has ended up so far behind current React that going to Preact is a very valid direction to take. |
|
I also don't see why switching to Preact does not require updating, they even mention they will have to do this anyway, including some of their routing dependencies. Preact seems to be keen on keeping compatibility with React, referring to the current and previous versions, so it is very likely updates need to happen regardless.
Also, upgrading React is usually not too much effort as for most changes codemods are provided that do most of the work. Not saying it doesn't require effort at scale, but I don't see or read how Preact would make that any easier. Considering you'll use React libraries in Preact I would be worried about upgrading and compatibility later on.
I'm honestly interested as the lower bundle size is significant, but I'd like to know the other pros/cons and risks that surely are there.