
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 not healthy version release cadence and project activity because the last version was released 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.