Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

imlinus/lily

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lily.js

This is just my Hobby UI framework, not done by a long shot :P

Example: https://codepen.io/imlinus/pen/abzJwVw

import Lily from '//unpkg.com/lily'
import HelloWorld from './hello-world.js'

class App extends Lily.Component {
  state () {
    return {
      title: 'Hello, World.'
    }
  }

  components () {
    return {
      HelloWorld
    }
  }

  template () {
    const { title } = this.$state

    return /* html */`
      <div>
        <h1>{{ title }}</h1>
        <input model="title" />

        <hello-world></hello-world>
      </div>
    `
  }
}

Lily.mount(App)

Cheers

js-standard-style

About

Reactive UI components

Resources

License

Stars

Watchers

Forks