A practical guide to adding React, Angular, and Vue output targets in stencil.config.ts, how the generated proxies map props and events, and what breaks when you ship one library to many frameworks.
Stencil’s output targets let you compile a single component source into framework‑specific wrappers and a standard Custom Element bundle. This guide shows how to configure, build, and consume the component in React, Angular, Vue, and plain HTML, including a practical example and key trade‑offs.
Restyle Ionic components without brittle deep selectors. Learn how to use documented CSS custom properties and ::part() to override ion-button styles safely across browser and device WebViews.
Learn how to use the lazy flag in StencilJS to split components into separate chunks, reduce initial JavaScript payload, and verify dynamic imports in a production build.
StencilJS uses compiler-driven lazy loading to ship Web Component chunks only when needed. See how the registry and loader reduce initial bundle size—and where FOUC or request overhead can bite.
Learn how to enable lazy‑loading for a StencilJS component, reduce bundle size, and verify the change. Follow this step‑by‑step guide to add a <component lazy> tag, provide a fallback, and confirm the chunk is fetched at runtime.
Implementing lazy‑loaded components in a StencilJS app keeps the initial bundle lean. This guide walks through the minimal design, trust boundaries, operational checks, and failure modes that can force a redesign. Use the example snippets and diagnostics to verify a robust lazy‑loading strategy.
Stencil's lazy:true decorator creates a separate chunk for a component that is fetched only on first DOM use. See how to enable it, verify on-demand loading in DevTools, and avoid first-render latency pitfalls.
Learn how StencilJS's `lazy: true` flag creates separate chunks for web components, reducing initial bundle size and deferring load until the component is actually needed.