Getting Started

The easiest way to get started with binder is to load it from a CDN:

<!-- index.html -->
<script type="module">
    import { registerControllers, Controller } from "https://cdn.jsdelivr.net/gh/teamwebhq/binder@v0.2.0-alpha/build/static/js/binder/binder.js";

    class MyController extends Controller {
        init() {
            this.innerHTML = "<p>Hello, World!</p>";
        }
    }

    registerControllers(MyController);
</script>

<my-controller></my-controller>

Check out the guide to learn how to use binder or the playground to see it in action.