Skip to content

Chanyon/dlight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dlight transpiler components vite-plugin-dlight-transpiler babel-plugin-optional-this @dlightjs/types

EN | 中文

Your modern web framework ~

  • ⚡️ Performant
    • Dlight enhances code performance at compile time and directly manipulates the DOM, which makes the execution speed of the code as close to vanilla JavaScript as possible, even with limited optimization knowledge.
  • 🚲 Simple
    • No more complex hooks towards reactivity. Just use @State, and dep-chain will help you do the rest.
    • Dlight provides context managing power by default.
    • Website development has never been so easy.
  • 🍼 Friendly
    • Support jsx and jsd(our new domain syntax) to help you write everything in js.
  • 🦋 Beautiful
    • Every line of code in DLight is elegant and beautiful!

Preview

// -> ./MyComp.jsd
import {View} from "@dlightjs/dlight"

export class MyComp extends View {
  @State count = 0  
  countPlus1 = this.count + 1  

  Body() {
    h1("hello, dlight js, jsd")
    div(this.count)
    div(this.countPlus1)
    button("+")
      .onclick(() => {
        this.count ++
      })
    button("-")
      .onclick(() => {
        this.count --
      })
  }
}

Documentation

(Upgrading dlight version..👨🏻‍💻 Better support with chinese documentation now)

Tutorial

Homepage

Building with DLight now👨🏻‍💻

TODO

TODO.md./docs/TODO.md)

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.7%
  • JavaScript 6.4%
  • Other 0.9%