Managing Component Data Flow with StencilJS @Prop and @State
Learn how to distinguish between @Prop and @State in StencilJS to create clean public APIs and efficient internal state management, including the use of mutable props.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to distinguish between @Prop and @State in StencilJS to create clean public APIs and efficient internal state management, including the use of mutable props.
Learn how to enable and configure StencilJS’s built‑in service worker for precaching and PWA routing. Follow this step‑by‑step guide to build, test, and recover from common issues.
Learn how to effectively use @Prop and @State in StencilJS to manage component re-renders and avoid common pitfalls with object mutation in Web Components.
Stencil's React output target generates thin wrapper components so React can pass real props and listen to custom events. Here's what it does, where it fails, and how to verify it.
Deciding between StencilJS's lazy-loaded 'dist' target and the 'dist-custom-elements' bundle is a trade-off between initial load speed and integration simplicity.
An architecture note that outlines the requirements for lazy‑loading StencilJS components, the minimal design needed, trust/data boundaries, operational verification steps, failure modes, and conditions that would trigger a redesign.
Learn how StencilJS’s @Lazy decorator splits a component into its own bundle, loads it on demand, and what trade‑offs to consider before applying it.
Learn how HTML5 Custom Elements let you create reusable, framework-free UI tags that encapsulate markup, style, and behavior, with a worked counter example and notes on style scoping and browser support.
Decide whether to use eager, lazy, or hybrid loading for StencilJS components. Compare constraints, trade‑offs, and see a concrete example that validates on‑demand loading while keeping SSR and legacy browsers happy.