Skip to content

Compose is a small and type-safe library that links your javascript to your DOM.

License

Notifications You must be signed in to change notification settings

cher-ami/compose

This branch is 10 commits ahead of, 11 commits behind willybrauner/compose:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Johann JEANNELLE
Jun 18, 2024
2afcfa9 · Jun 18, 2024
Oct 30, 2022
Nov 15, 2022
Nov 2, 2023
Jun 18, 2024
Jun 18, 2024
Mar 31, 2023
Aug 18, 2021
Oct 30, 2022
Oct 30, 2022
Oct 30, 2022
Aug 28, 2021
Nov 2, 2023
Jun 18, 2024
Jun 18, 2024
Jun 18, 2024
Nov 12, 2022
Nov 4, 2022
Nov 4, 2022

Repository files navigation

Compose

Compose is a small and type-safe library that links your javascript to your DOM.
⚠️ This library is work in progress, the API is subject to change until the v1.0 release.



Documentation

Check the full documentation website

Preview

<div data-component="App">
  <header data-component="Header"></header>
</div>
import { Component } from "@cher-ami/compose"

class App extends Component {
  static attrName = "App"
  header = this.add(Header)
  mounted() {}
  unmounted() {}
}

class Header extends Component {
  static attrName = "Header"
  // ...
}

Start examples

  • Clone this repo
$ git clone git@github.com:willybrauner/compose.git
  • Install dependencies with pnpm
$ pnpm install
  • Start example dev server
$ npm run example-basic:dev

Credits

© Willy Brauner

Licence

MIT

About

Compose is a small and type-safe library that links your javascript to your DOM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.7%
  • JavaScript 0.3%