0.3.0 • Published 6 months ago

newy v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

声明式DOM库

项目地址

示例

import { tag, html } from 'newy'

let { div, a, img, h1, p, button } = tag

let dom = html(
  div(
    a`href="https://vitejs.dev" target="_blank"`(img`src=${src1} class="logo" alt="Vite logo"`),
    a`href="https://www.typescriptlang.org/" target="_blank"`(
      img`src=${src2} class="logo vanilla" alt="TypeScript logo"`
    ),
    h1('Vite + TypeScript'),
    div`class="card"`(button`id="counter" type="button"`),
    p`class="read-the-docs"`('Click on the Vite and TypeScript logos to learn more')
  )
)

document.querySelector('body').append(dom)
0.3.0

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago