0.0.3 • Published 3 years ago
@reactively/lit v0.0.3
Reactively
Reactively is a library for fine grained reactive programming.
See documentation for details.
This part of the library (@reactively/lit)
provides integration with the Lit library for web components.
Here is an example using Lit and @reactively together.
- Inherit from
ReactiveLitElementin place ofLitElement - Implement
reactiveRender()instead ofrender(). (This enables@reactively/litto track the reactive sources used while rendering, and to trigger re-rendering when necessary.) - Choose how to annotate your reactive properties:
@reactivePropertyproperties are reactive and visible as lit web component properties.@reactivelyproperties are reactive but not web component properties.
- Call
stabilizeContinously()once when you start your application, so that allReactiveLitElementinstances will re-render() automatically.