Back in 2019, I made a small side project to learn React (CRA) and Redux. This weekend, I took the time to change a few things: migrate to Preact + Vite with no Redux.

Here are my findings.

Bundle size (min+gz)
- Before: 69 kB
- After removing Redux and migrating to Vite: 57 kB
- After migrating to preact/compat: 20 kB

I'm still in the process of going from preact/compat to proper Preact, but that should chip away another 2 kB according to the docs.

Another major finding:
Redux still rocks. My old code as a Redux beginner was so clean that I had a hard time converting it to an equally clean React-only code.

Sign in to participate in the conversation
I'm in Space

A generalist Mastodon instance with a nice domain name. Running on Glitch Social's fork with a custom theme!