npm.io
1.4.0 • Published 5 years ago

tswlib

Licence
MIT
Version
1.4.0
Deps
0
Size
83 kB
Vulns
0
Weekly
0
Stars
2

Overview

This library can be used to create client-side web applications. All rendering of HTML is done entirely in the Typescript code. The library has no dependencies.

Example

This is an example of a very simple script which displays a list of text items:

const items = ["item 1", "item 2", "item 3"];

const content =
	tsw.html.ul().children([
		items.map(item => tsw.html.li().children(item)),
	]);

tsw.setContent(document.body, content);