[go: up one dir, main page]

DEV Community

Ali Abbas
Ali Abbas

Posted on • Edited on

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.