Re:React v18.0
by haolez on Tuesday March 29, 2022 @02:34PM
(#30846596)
In this specific context, can Preact be considered a more "reasonable" React offering? Or does it follow each and every feature of React?
[ Parent
| on HN ]
It's definitely a much simpler react-like library. You don't get the React ecosystem though. If you're looking to step out beyond React, inferno is also worth considering. It focuses on performance rather than bundle size (it's smaller than React, but bigger than Preact).
Re:React v18.0
by rschristian on Tuesday March 29, 2022 @06:32PM
(#30849201)
> You don't get the React ecosystem though.
Well this is an odd thing to say, as there's a whole dedicated compatibility layer. That's not to say it's 100%; relying on specifics of synthetic events, such as bubbling through portals, for example, won't work but it's a drop-in replacement for many users.
Take a peek at https://preactjs.com/guide/v10/switching-to-preact/