Tiny Reacty stack

If you like your React and styled components, but want to reduce the size of your JavaScript bundles, consider the following tiny alternatives:

  • Preact — 3 KB alternative to React, with a few kilobytes more if you want full compatibility.
  • goober — 1 KB styled components alternative.

Preact also has its own interesting state library called signals. It’s tiny and enables rendering optimizations by avoiding virtual DOM in certain cases. (There is also a version of signals available for React if you need to switch back.)