all the hooks for this project.
a hook is used with the cmp macro. A hook is a function that accepts any number of params that the user supplies and returns a function that accepts the vdom atom as its sole argument. The return value of that is the user facing value that is returned in the hook-calls part of the component creation. This is so the vdom-state atom may be passed in and used by the hook without the user ever knowing about the inner workings/lifecycle of the library.
all the hooks for this project. a hook is used with the cmp macro. A hook is a function that accepts any number of params that the user supplies and returns a function that accepts the vdom atom as its sole argument. The return value of that is the user facing value that is returned in the hook-calls part of the component creation. This is so the vdom-state atom may be passed in and used by the hook without the user ever knowing about the inner workings/lifecycle of the library.
(use-dom-el)
(use-state init)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close