5 ms·
I wonder what the other differences and considerations are. The article is focused on issues that might arise from switching, but does not really cover the “why
by codeptualize 5y ago
I wonder what the other differences and considerations are. The article is focused on issues that might arise from switching, but does not really cover the “why” of switching beyond bundle size. A valid reason, but I assume there is something to say for React or is it really that similar that switching is a no brainer?
- tarjei_huse 5y agoThe 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.
- codeptualize 5y agoI'm not sure I read that in the article. 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.