1.1.0 • Published 3 years ago

minite v1.1.0

Weekly downloads
45
License
MIT
Repository
github
Last release
3 years ago

⏳ minite.js

A tiny Javascript library (around ~1kB gzipped) for create state-based UI component with simple reactivity power rendered on real-dom using React-like API, let you learn & start just in a minite.

Installtaion

Node JS

import { m, render } from 'minite'
// const { m, render } = require('minite')

CDN

HTML:

<script src="https://unpkg.com/minite@0.1.21/dist/minite.umd.js"></script>

JavaScript:

// "minite" instance available globally
const { m, render } = minite

Quick Start

HTML:

<div id="app"></div>

JavaScript:

import { m, render, useState } from 'minite'

const App = () => {
  const [count, setCount] = useState(0)

  // Tag name 'x' -> fragment, return childrens
  return m('x', [
    m('p', 'Count: ${count}'),
    m('button', { onClick: () => setCount(count + 1) }, '+1'),
    m('button', { onClick: () => setCount(count - 1) }, '-1'),
  ])
}

const root = document.getElementById('app')
render(root, App)

TODO

  • Writing documentation
  • Adding more example
1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.21

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.12

3 years ago

0.1.1-0.1

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago