0.0.15 • Published 5 months ago

@tioniq/elementiq v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Elementiq

Elementiq is a simple and lightweight library for building web applications using JSX (or without) and reactive programming. The package is still in alpha stage and is not recommended for production use.

Installation

npm install @tioniq/elementiq

Required setup

Set the following options in your tsconfig.json file:

{
  "compilerOptions": {
    "...": "...",
    "jsx": "react-jsx",
    "jsxImportSource": "@tioniq/elementiq"
  }
}

Basic Usage

import {createVar} from "@tioniq/eventiq"
import {render} from "@tioniq/elementiq"

function AnotherView() {
  return <span>
    Tapped count: 
  </span>
}

function View() {
  const count = createVar(0)
  return <div>
    <AnotherView/>
    <span>
      {count.map(c => c.toString())}
    </span>
    <button
      onClick={() => {
        count.value += 1
      }}>Tap
    </button>
  </div>
}

window.onload = () => {
  render(<View/>, document.body)
}
0.0.15

5 months ago

0.0.14

5 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.10

8 months ago

0.0.11

8 months ago

0.0.9

9 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago