1.0.0 • Published 3 years ago

@stagas/vele v1.0.0

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

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