Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@reactively/lit

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactively/lit

Reactively is a library for fine grained reactive programming.

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

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.

  1. Inherit from ReactiveLitElement in place of LitElement
  2. Implement reactiveRender() instead of render(). (This enables @reactively/lit to track the reactive sources used while rendering, and to trigger re-rendering when necessary.)
  3. Choose how to annotate your reactive properties:
    • @reactiveProperty properties are reactive and visible as lit web component properties.
    • @reactively properties are reactive but not web component properties.
  4. Call stabilizeContinously() once when you start your application, so that all ReactiveLitElement instances will re-render() automatically.

Keywords

FAQs

Package last updated on 20 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc