1.0.5 • Published 4 years ago

baugruppe v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Baugruppe is a tool for building html elements in javascript

Example

import baugruppe from 'baugruppe'

// this will create a div with '.example' class
function buildExampleComponent() {
    return baugruppe.build('div', '.example')
}

// this will create a div with children
function buildAnotherExampleComponent() {
    const childOne = baugruppe.build('p', '.title')
    const childTwo = baugruppe.build('p', '.content')
    return baugruppe.build('div', '.anotherExample', [childOne, childTwo])
    // if only need one child to append
    // return baugruppe.build('div', '.anotherExample', childOne)
}

document.body.appendChild(buildExampleComponent())
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago