DEV Community

Ali Abbas
Ali Abbas

Posted on • Edited on

6 1

React vs Preact?

For a small project that needa blazing fast speed, which to prefer.

  • REACT
  • PREACT
  • INFERNO
  • MITHRIL
  • MOON

Top comments (12)

Collapse
 
vonheikemen profile image
Heiker

Blazing fast in what sense? Creating nodes, Updating the ui, bundle size?

Both Preact and React are fast enough.

I will choose Preact, because is 3kb.

But if you want to use hooks with preact you have to install an unstable version preact@next because the stable version doesn't have them.

Collapse
 
solarliner profile image
🇨🇵️ Nathan Graule

Preact entered beta a few weeks ago, and so far it's been quite stable. I'm using it for 2 projects - nothing to report bar one quirky TypeScript typing.

Collapse
 
itsjzt profile image
Saurabh Sharma

I would say start with react and eject when you find preact is actually making your app faster.

Collapse
 
maheshkale profile image
Mahesh K

Preact, definitely. I'd say you can also use react with better CDN for serving media elements. If that's something you are planning on using.

Collapse
 
anpos231 profile image
anpos231

Inferno ;P

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay