Liking cljdoc? Tell your friends :D

rumext.alpha


catchcljs

(catch component {:keys [fallback on-error]})
source

check-propscljs

(check-props props)
(check-props props eqfn?)

Utility function to use with memo'. Will check the props keys to see if they are equal.

Usage:

(mf/defc my-component {::mf/wrap [#(mf/memo' % (checkprops ["prop1" "prop2"]))]} [props] )

Utility function to use with `memo'`.
Will check the `props` keys to see if they are equal.

Usage:

(mf/defc my-component
  {::mf/wrap [#(mf/memo' % (checkprops ["prop1" "prop2"]))]}
  [props]
)
sourceraw docstring

Componentcljs

source

create-contextcljs

(create-context)
(create-context value)
source

create-elementcljs

(create-element type props)
(create-element type props children)
source

create-refcljs

(create-ref)
source

defcclj/smacro

(defc & args)
source

deferredcljs

(deferred component)
(deferred component sfn)
source

depscljs

(deps)
(deps a)
(deps a b)
(deps a b c)
(deps a b c d)
(deps a b c d e)
(deps a b c d e f)
(deps a b c d e f g)
(deps a b c d e f g h)
(deps a b c d e f g h & rest)
source

derefcljs

(deref iref)
source

elementcljs

(element klass)
(element klass props)
source

fncclj/smacro

(fnc & args)
source

forward-refcljs

(forward-ref component)
source

Fragmentcljs

source

handlersclj

source

htmlclj/smacro

(html body)
source

memocljs

(memo component)
(memo component eq?)
source

memo'cljs

(memo' component equals?)

A raw variant of React.memo.

A raw variant of React.memo.
sourceraw docstring

mountcljs

(mount element node)

Add element to the DOM tree. Idempotent. Subsequent mounts will just update element.

Add element to the DOM tree. Idempotent. Subsequent mounts will
just update element.
sourceraw docstring

parse-defcclj

(parse-defc args)
source

portalcljs

(portal element node)

Render element in a DOM node that is ouside of current DOM hierarchy.

Render `element` in a DOM `node` that is ouside of current DOM hierarchy.
sourceraw docstring

Profilercljs

source

providercljs

(provider ctx)
source

ref-valcljs

(ref-val ref)

Given state and ref handle, returns React component.

Given state and ref handle, returns React component.
sourceraw docstring

set-ref-val!cljs

(set-ref-val! ref val)
source

throttlecljs

(throttle component ms)
source

unmountcljs

(unmount node)

Removes component from the DOM tree.

Removes component from the DOM tree.
sourceraw docstring

use-callbackcljs

(use-callback f)
(use-callback deps f)
source

use-ctxcljs

source

use-effectcljs

(use-effect f)
(use-effect deps f)
source

use-fncljs

(use-fn f)
(use-fn deps f)

A convenient alias to useCallback

A convenient alias to useCallback
sourceraw docstring

use-layout-effectcljs

(use-layout-effect f)
(use-layout-effect deps f)
source

use-memocljs

(use-memo f)
(use-memo deps f)
source

use-refcljs

source

use-statecljs

(use-state initial)
source

use-varcljs

(use-var initial)

A custom hook for define mutable variables that persists on renders (based on useRef hook).

A custom hook for define mutable variables that persists
on renders (based on useRef hook).
sourceraw docstring

useCallbackcljs

(useCallback f deps)
source

useContextcljs

(useContext ctx)
source

useEffectcljs

(useEffect f deps)
source

useLayoutEffectcljs

(useLayoutEffect f deps)
source

useMemocljs

(useMemo f deps)
source

useRefcljs

(useRef initial)
source

useStatecljs

(useState initial)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close