DEV Community

Discussion on: Don't Optimize Your React App, Use Preact Instead

Collapse
 
wintercounter profile image
Victor Vincent

Once we changed experimentally ~2 years ago the codebase to preact and we had decreased pageload times reported both by devtools and analytical tools, even tho evaluation times improved. We reverted. Possibly this improved since then.

However, as it was pointed out, Suspense and Lazy are experimental, React 18 is around the corner with even more features. It simply means preact will be one step behind, no matter what. Not saying it's anyone's fault, everyone can decide on their own which one is more benefitial/important for their project.

Collapse
 
leob profile image
leob • Edited

There's no such thing as a free lunch ... there are always trade-offs ... performance gains might be marginal and unnoticeable in real world usage ... if it sounds too good to be true, it probably isn't true.