Get started with choo CDN

MIT licensed

Choo: Minimalist JS library for web apps via functional reactive programming.

Tags:
  • client
  • frontend
  • framework
  • minimal
  • composable
  • tiny

Stable version

Copied!

How to start using choo CDN


import choo from 'https://cdn.cdnhub.io/choo/7.1.0/bundle.min.js';
import html from 'choo/html';

const App = choo();

const view = (state, emit) => html`
  <div>
    <h1>Hello, ${state.name}!</h1>
    <button onclick=${() => emit(state, 'clicked')}>Click me</button>
  </div>
`;

App.model({ name: 'World' });
App.route('/', () => ({ name: 'World' }));
App.component('app', view);

App.mount('#app');
Copied!
Copied!

All versions