Skip to content
Compare

preact-custom-element vs HTM

Side-by-side compatibility, runtime support and editorial notes for Preact projects.

Native PreactActive
preact-custom-element

Wrap Preact components as standards-based custom elements.

preact-custom-element

Category
Developer Tools
Compatibility
Native Preact
Maintenance
Active
Runtime
TypeScriptNo SSRIslandsESM
Verified
Not yet verified
Tested with
Not documented
License
MIT
Bundle size
Not documented
Score
Directory score80/100
Compatibility35/35
Maintenance20/20
TypeScript10/10
SSR0/10
Islands10/10
ESM5/5
Verification0/10
View preact-custom-element profile
Native PreactActive
HTM

JSX-free tagged template syntax that pairs naturally with Preact.

htm

Category
Developer Tools
Compatibility
Native Preact
Maintenance
Active
Runtime
TypeScriptSSRIslandsESM
Verified
Not yet verified
Tested with
Not documented
License
MIT
Bundle size
Not documented
Score
Directory score90/100
Compatibility35/35
Maintenance20/20
TypeScript10/10
SSR10/10
Islands10/10
ESM5/5
Verification0/10
View HTM profile

At a glance

Attributepreact-custom-elementHTM
CompatibilityNative PreactNative Preact
MaintenanceActiveActive
TypeScriptNative TypeScriptNative TypeScript
SSRSSR unsupportedSSR supported
IslandsYesYes
Last verifiedNot yet verifiedNot yet verified
AI auditNot auditedNot audited