Skip to main content
Head-to-Head NPM Comparison

preactvsreact

Detailed package comparison for bundle size, weekly downloads, supply chain security, and license obligations.

Weekly Downloads Leader
react116.2M/wk
Security Grade Leader
react100/100
TypeScript Ready
preact
Specification
preactv11.0.1
reactv19.3.1
Weekly Downloads23.2M116.2MWinner
Unpacked Size605.2 KB174.5 KB
Security Grade
C(50/100)
A+(100/100)
Lifecycle Scripts Clean (No scripts) Clean (No scripts)
TypeScript Support Built-in Types (.d.ts)Community @types
License TypeMITPERMISSIVEMITPERMISSIVE
Direct Dependencies00
Active Maintainers62
Last ReleaseOct 8, 2026Oct 14, 2026
Install Commandnpm i preactnpm i react
Full Security ReportView preact AuditView react Audit
Free Castov VS Code Tool

Compare Dependencies Directly in VS Code

Audit supply chain risks, compare lightweight alternative packages, and catch malicious install scripts straight inside your package.json editor.

Download VS Code Extension

Frequently Asked Questions

Which package is more popular, preact or react?
react is currently more popular with higher weekly downloads (116.2M/week) compared to preact (23.2M/week).
Which has better supply chain security, preact or react?
preact has a security score of 50/100 (Grade C), while react holds 100/100 (Grade A+). react scores higher for supply chain hygiene.
Do preact and react provide TypeScript definitions?
preact includes built-in TypeScript types, while react may require community @types definitions.
What licenses do preact and react use?
preact is published under the MIT license (PERMISSIVE), and react is licensed under MIT (PERMISSIVE).