@stagas/vele

elegant virtual dom

Usage no npm install needed!

<script type="module">
  import stagasVele from 'https://cdn.skypack.dev/@stagas/vele';
</script>

README

vele

elegant virtual dom

🔧 Install · 🧩 Example · 📜 API docs · 🔥 Releases · 💪🏼 Contribute · 🖐️ Help


Install

$ npm i @stagas/vele

WIP don't use

API

Table of Contents

useHook

src/render.ts:251-251

Returns a callback that will trigger a rerender on the current component.

let clicked = 0
const Foo = () => <>
  {clicked++}
  <button onclick={useHook()}>click me</button>
</>

Returns any The hook callback

Contribute

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas