Pros and cons
What Preact does especially well — and the limits to anticipate.
Pros
- Only 3kb (vs ~40kb React)
- Compatible with React API via preact/compat
- Excellent performance
- Ideal for embedded widgets
Cons
- Smaller ecosystem than React
- Some React libs not compatible
- Fewer community resources
Preact: when it makes sense.
À préférer à React uniquement quand chaque KB compte.
Keep if
Le bundle size est un critère critique. Tu veux la syntaxe React sans le poids
Challenge if
Tu veux accès à tout l'écosystème React sans restrictions. Ton projet est une app complexe
