Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
reactive-html-element
Advanced tools
ReactiveHTMLElement
ReactiveHTMLElement is a lightweight and reactive web-component based framework developed by The Weird Science B.V..
Overview
ReactiveHTMLElement provides a framework for building web components that are reactive to data changes. It utilizes a doT.js template system that allows for dynamic rendering based on changes in the underlying data.
License
This software is licensed under the MIT License. See the LICENSE file for details.
Installation
There are three ways you can have RxEl in your project.
CDN
NPM
Source code
You can easily include RxEl in your project by adding the following script tags to your HTML file. Copy and paste these lines into the <head>
section of your HTML file.
<!-- Include ReactiveHTMLElement.js -->
<script src="https://cdn.jsdelivr.net/gh/weird-io/reactive-html-element@master/src/reactive/ReactiveHTMLElement.js"></script>
<!-- Include ReactiveHTMLElementTemplate.js -->
<script src="https://cdn.jsdelivr.net/gh/weird-io/reactive-html-element@master/src/reactive/ReactiveHTMLElementTemplate.js"></script>
Once you've included the scripts, you can start using the framework in your JavaScript code. Here's a simple example:
// Create an instance of ReactiveHTMLElement
const myElement = new ReactiveHTMLElement();
// Do something with myElement... How to build a web component
Make sure you have Node.js and npm installed: If you haven't installed Node.js and npm, you can download and install them from the official website: Node.js Downloads Open a terminal or command prompt: On macOS or Linux, you can use the Terminal. On Windows, you can use the Command Prompt or PowerShell. Navigate to your project directory: Use the cd command to navigate to the directory where you want to install the reactive-html-element package.
cd path/to/your/project
Execute the following command to install the reactive-html-element package and its dependencies: npm install reactive-html-element
Getting started
Create your reactive web component
FAQs
Lightweight and reactive web-component based framework
The npm package reactive-html-element receives a total of 1 weekly downloads. As such, reactive-html-element popularity was classified as not popular.
We found that reactive-html-element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.