Best Practices
- Use
signalfor scalar state; importcreateStorefromsprig-framework/storewhen nested plain-object or array reactivity is useful. - Stop effects or register teardown with
onCleanup; keep ownership scopes clear. - Give every
@for/eachrow a unique, stable key. - Keep
.sprigsyntax within the documented subset and use one template root. - Use the optional router, form, and animation package entries only where needed.
- Respect reduced-motion preferences; the animation add-on does this by default.
- Treat the demo API as local-only, not production infrastructure.
Check Specifications and Limits before depending on a feature that resembles a Vue API.