@stagas/vele
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @stagas/vele

Weekly Downloads

40

Version

1.0.0

License

MIT

Unpacked Size

147 kB

Total Files

51

Last publish

Collaborators

  • stagas