v2.0

Getting started with LadrillosJS

A lightweight, zero-dependency web component framework. Build reactive UIs with plain .html files — no JSX, no virtual DOM, no compiler required. You'll have your first component running in about five minutes.

1. Install

Pick the path that fits your project. Both paths work the same way.

2. Your first component

A LadrillosJS component is a single .html file with markup, a <script>, and optional <style>. Let's build a counter.

1

Create the component

Save this as counter.html:

2

Register it

Tell LadrillosJS which custom-element tag maps to which file.

3

Use it anywhere

Drop the tag into your HTML — it's a real custom element.

Live result
That's it. No build step required, no boilerplate, no setState. Just declare a let variable and the DOM updates when you change it.