The case for and against. What Preact does well, and when it costs too much.
For. What works in its favour.
- Extremely lightweight: 3 kB only (vs 45 kB for React).
- Nearly identical API to React, easy for React developers.
- Excellent performance even on slow networks.
- React-compatible via preact/compat, allows reusing React components.
- You want React but with minimal bundle size.
- You need optimal performance for slow networks.
Against. What to plan for.
- Smaller ecosystem than React.
- Fewer Preact-specific libraries and tools.
- Smaller community, fewer answers to questions.
- You work in a large team accustomed to React and its patterns.
- Bundle size is not a concern.