Get started with chaplin CDN

MIT licensed

Chaplin: Lightweight library for rich media components.

Tags:
  • chaplin

Stable version

Copied!

How to start using chaplin CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with chaplin CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/chaplin/0.11.3/chaplin.min.js"></script>
</head>
<body>
  <div id="app"></div>
  <script>
    // Define a simple Chaplin component
    class MyComponent extends chaplin.Component {
      constructor() {
        super();
        this.render = this.render.bind(this);
      }

      render() {
        return m('div', 'Hello, Chaplin!');
      }
    }

    // Initialize the application and mount the component
    chaplin.mount('#app', MyComponent);
  </script>
</body>
</html>
Copied!

All versions