Hacker News new | past | comments | ask | show | jobs | submit login

Preact is 3kb and works as a drop in replacement for React (most of the time). It's also way faster.



Similar to how the size of react without accounting for react-dom is deceptive, one is also unlikely to use preact without @preact/hooks and/or @preact/signals which increases the size somewhat. Still much, MUCH smaller than react though.


Is there a reason to use the original react, or will most libraries also work with preact, which is both faster and smaller?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: