woodoo

1.0.2 • Public • Published

WooDoo

downloads version issues package size forks stars license programming language

A ~1.2kb (package size) 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%)

Getting Started

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>

Demo

Readme

Keywords

Package Sidebar

Install

npm i woodoo

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

89.6 kB

Total Files

15

Last publish

Collaborators

  • ferrriii