Socket
Socket
Sign inDemoInstall

@cher-ami/compose

Package Overview
Dependencies
2
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cher-ami/compose

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


Version published
Weekly downloads
150
decreased by-37.76%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 18 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc