@erickmerchant/framework

A front-end framework.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jun 10, 2021Jun 17, 2016Minified + gzip package size for @erickmerchant/framework in KB

Readme

@erickmerchant/framework

A very simple framework in a bit less than 3kB minified + gzipped. No build step required to use. Import it from a cdn like skypack and get started.

Example

import {
  createApp,
  createDomView,
  html
} from 'https://cdn.skypack.dev/@erickmerchant/framework?min'

const app = createApp(0)

const decrement = () => {
  app.state--
}

const increment = () => {
  app.state++
}

const target = document.querySelector('div')

const view = createDomView(
  target,
  (state) => html`
    <div>
      <output>${state}</output>
      <br />
      <button type="button" @click=${decrement}>--</button>
      <button type="button" @click=${increment}>++</button>
    </div>
  `
)

app.render(view)

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.