A ~1.2kb () alternative to React and Vue.
WooDoo is a simple and lightweight library for creating reactive, state-based UI. Features:
- Template literals (Template strings) support
- Event bindings
- Efficient and fast
- IE 11 and major browsers support (> 0.25%)
Use below template to get started.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WooDoo Hello World!</title>
</head>
<body>
<div id="app">App Placeholder</div>
<script src="https://unpkg.com/woodoo"></script>
<script>
let app = new WooDoo({
element: '#app',
data: {
text: 'Hello !',
},
template() {
return `
<span>${this.text}</span>
`
}
}
)
app.render()
</script>
</body>
</html>
If you would like to use ES modules, include below script in your app.
<script type="module" src="https://unpkg.com/woodoo/dist/esm/index-min.js"></script>